AxisInfo.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
00003  * All rights reserved. This program is made available under the terms of the
00004  * Eclipse Public License v1.0 which accompanies this distribution, and is
00005  * available at http://www.eclipse.org/legal/epl-v10.html
00006  * Contributors:
00007  * General Robotix Inc.
00008  * National Institute of Advanced Industrial Science and Technology (AIST) 
00009  */
00010 package com.generalrobotix.ui.view.graph;
00011 
00012 import org.eclipse.swt.graphics.Color;
00013 import org.eclipse.swt.graphics.Font;
00014 import com.generalrobotix.ui.grxui.Activator;
00015 
00022 public class AxisInfo {
00023 
00024     // -----------------------------------------------------------------
00025     // インスタンス変数
00026     public double base;             // 軸下端(左端)の値
00027     public double extent;           // 軸下端(左端)から軸上端(右端)までの幅
00028     public double max;              // 最大値(この値より大きいティックやラベルを振らない)
00029     public double min;              // 最小値(この値未満のティックやラベルを振らない)
00030     public boolean maxLimitEnabled; // ティックやラベルの最大値制限を有効にする
00031     public boolean minLimitEnabled; // ティックやラベルの最小値制限を有効にする
00032     public Color color;             // 軸の色
00033     public double factor;           // データにこの係数を掛けてプロットする
00034     public double tickEvery;        // ティック間隔
00035     public int tickLength;          // ティックの長さ
00036     public double labelEvery;       // ラベル間隔
00037     public String labelFormat;      // ラベルフォーマット
00038     public Font labelFont;          // ラベルフォント
00039     public Color labelColor;        // ラベル色
00040     public Font unitFont;           // 単位ラベルフォント
00041     public String unitLabel;        // 単位ラベル
00042     public Color unitColor;         // 単位色
00043     public int unitXOfs;
00044     public int unitYOfs;
00045     public double gridEvery;        // グリッド間隔
00046     public Color gridColor;         // グリッドの色
00047     public boolean markerVisible;   // マーカーの表示フラグ
00048     public double markerPos;        // マーカーの表示位置
00049     public Color markerColor;       // マーカの色
00050 
00051     // -----------------------------------------------------------------
00052     // コンストラクタ
00059     public AxisInfo(
00060         double base,
00061         double extent
00062     ) {
00063         this.base = base;
00064         this.extent = extent;
00065         max = 0.0;
00066         min = 0.0;
00067         maxLimitEnabled = false;
00068         minLimitEnabled = false;
00069         color = Activator.getDefault().getColor("white");
00070         factor = 1.0;
00071         tickEvery = 0.0;
00072         tickLength = 3;
00073         labelEvery = 0.0;
00074         labelFormat = "0";
00075         labelFont = Activator.getDefault().getFont( "monospaced" );
00076         labelColor = Activator.getDefault().getColor("white");
00077         unitFont = Activator.getDefault().getFont( "monospaced" );
00078         unitLabel = "";
00079         unitColor = Activator.getDefault().getColor("white");
00080         unitXOfs = 0;
00081         unitYOfs = 0;
00082         gridEvery = 0.0;
00083         gridColor = Activator.getDefault().getColor("darkGray");
00084         markerVisible = false;
00085         markerPos = 0.0;
00086         markerColor = Activator.getDefault().getColor("gray");
00087     }
00088 }


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:52