GrxUIonEclipse-project-0.9.8
src
com
generalrobotix
ui
view
graph
AxisInfo.java
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3
* All rights reserved. This program is made available under the terms of the
4
* Eclipse Public License v1.0 which accompanies this distribution, and is
5
* available at http://www.eclipse.org/legal/epl-v10.html
6
* Contributors:
7
* General Robotix Inc.
8
* National Institute of Advanced Industrial Science and Technology (AIST)
9
*/
10
package
com.generalrobotix.ui.view.graph;
11
12
import
org
.eclipse.swt.graphics.Color;
13
import
org
.eclipse.swt.graphics.Font;
14
import
com
.
generalrobotix
.
ui
.
grxui
.
Activator
;
15
22
public
class
AxisInfo
{
23
24
// -----------------------------------------------------------------
25
// インスタンス変数
26
public
double
base
;
// 軸下端(左端)の値
27
public
double
extent
;
// 軸下端(左端)から軸上端(右端)までの幅
28
public
double
max
;
// 最大値(この値より大きいティックやラベルを振らない)
29
public
double
min
;
// 最小値(この値未満のティックやラベルを振らない)
30
public
boolean
maxLimitEnabled
;
// ティックやラベルの最大値制限を有効にする
31
public
boolean
minLimitEnabled
;
// ティックやラベルの最小値制限を有効にする
32
public
Color
color
;
// 軸の色
33
public
double
factor
;
// データにこの係数を掛けてプロットする
34
public
double
tickEvery
;
// ティック間隔
35
public
int
tickLength
;
// ティックの長さ
36
public
double
labelEvery
;
// ラベル間隔
37
public
String
labelFormat
;
// ラベルフォーマット
38
public
Font
labelFont
;
// ラベルフォント
39
public
Color
labelColor
;
// ラベル色
40
public
Font
unitFont
;
// 単位ラベルフォント
41
public
String
unitLabel
;
// 単位ラベル
42
public
Color
unitColor
;
// 単位色
43
public
int
unitXOfs
;
44
public
int
unitYOfs
;
45
public
double
gridEvery
;
// グリッド間隔
46
public
Color
gridColor
;
// グリッドの色
47
public
boolean
markerVisible
;
// マーカーの表示フラグ
48
public
double
markerPos
;
// マーカーの表示位置
49
public
Color
markerColor
;
// マーカの色
50
51
// -----------------------------------------------------------------
52
// コンストラクタ
59
public
AxisInfo
(
60
double
base,
61
double
extent
62
) {
63
this.base =
base
;
64
this.extent =
extent
;
65
max = 0.0;
66
min = 0.0;
67
maxLimitEnabled =
false
;
68
minLimitEnabled =
false
;
69
color =
Activator
.
getDefault
().
getColor
(
"white"
);
70
factor = 1.0;
71
tickEvery = 0.0;
72
tickLength = 3;
73
labelEvery = 0.0;
74
labelFormat =
"0"
;
75
labelFont =
Activator
.
getDefault
().
getFont
(
"monospaced"
);
76
labelColor =
Activator
.
getDefault
().
getColor
(
"white"
);
77
unitFont =
Activator
.
getDefault
().
getFont
(
"monospaced"
);
78
unitLabel =
""
;
79
unitColor =
Activator
.
getDefault
().
getColor
(
"white"
);
80
unitXOfs = 0;
81
unitYOfs = 0;
82
gridEvery = 0.0;
83
gridColor =
Activator
.
getDefault
().
getColor
(
"darkGray"
);
84
markerVisible =
false
;
85
markerPos = 0.0;
86
markerColor =
Activator
.
getDefault
().
getColor
(
"gray"
);
87
}
88
}
com.generalrobotix.ui.view.graph.AxisInfo.factor
double factor
Definition:
AxisInfo.java:33
com.generalrobotix.ui
com.generalrobotix.ui.view.graph.AxisInfo.max
double max
Definition:
AxisInfo.java:28
com.generalrobotix.ui.view.graph.AxisInfo.markerVisible
boolean markerVisible
Definition:
AxisInfo.java:47
com.generalrobotix.ui.view.graph.AxisInfo
Definition:
AxisInfo.java:22
com
com.generalrobotix.ui.view.graph.AxisInfo.unitYOfs
int unitYOfs
Definition:
AxisInfo.java:44
com.generalrobotix.ui.grxui.Activator
Definition:
GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java:58
com.generalrobotix.ui.view.graph.AxisInfo.maxLimitEnabled
boolean maxLimitEnabled
Definition:
AxisInfo.java:30
com.generalrobotix.ui.view.graph.AxisInfo.base
double base
Definition:
AxisInfo.java:26
com.generalrobotix.ui.view.graph.AxisInfo.labelFormat
String labelFormat
Definition:
AxisInfo.java:37
com.generalrobotix.ui.grxui.Activator.getDefault
static Activator getDefault()
Definition:
GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java:324
com.generalrobotix.ui.view.graph.AxisInfo.unitXOfs
int unitXOfs
Definition:
AxisInfo.java:43
com.generalrobotix.ui.view.graph.AxisInfo.labelEvery
double labelEvery
Definition:
AxisInfo.java:36
com.generalrobotix.ui.view.graph.AxisInfo.labelFont
Font labelFont
Definition:
AxisInfo.java:38
com.generalrobotix.ui.view.graph.AxisInfo.min
double min
Definition:
AxisInfo.java:29
com.generalrobotix.ui.view.graph.AxisInfo.tickEvery
double tickEvery
Definition:
AxisInfo.java:34
com.generalrobotix.ui.view.graph.AxisInfo.gridColor
Color gridColor
Definition:
AxisInfo.java:46
com.generalrobotix.ui.view.graph.AxisInfo.markerColor
Color markerColor
Definition:
AxisInfo.java:49
com.generalrobotix.ui.view.graph.AxisInfo.color
Color color
Definition:
AxisInfo.java:32
com.generalrobotix.ui.view.graph.AxisInfo.minLimitEnabled
boolean minLimitEnabled
Definition:
AxisInfo.java:31
com.generalrobotix.ui.grxui.Activator.getFont
Font getFont(String fontName)
Definition:
GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java:351
com.generalrobotix.ui.view.graph.AxisInfo.labelColor
Color labelColor
Definition:
AxisInfo.java:39
com.generalrobotix.ui.view.graph.AxisInfo.unitLabel
String unitLabel
Definition:
AxisInfo.java:41
com.generalrobotix.ui.view.graph.AxisInfo.extent
double extent
Definition:
AxisInfo.java:27
com.generalrobotix.ui.view.graph.AxisInfo.markerPos
double markerPos
Definition:
AxisInfo.java:48
com.generalrobotix.ui.grxui.Activator.getColor
Color getColor(RGB rgb)
Definition:
GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java:355
org
org
com.generalrobotix.ui.view.graph.AxisInfo.unitFont
Font unitFont
Definition:
AxisInfo.java:40
com.generalrobotix.ui.view.graph.AxisInfo.tickLength
int tickLength
Definition:
AxisInfo.java:35
com.generalrobotix.ui.grxui
Definition:
GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java:1
com.generalrobotix.ui.view.graph.AxisInfo.gridEvery
double gridEvery
Definition:
AxisInfo.java:45
com.generalrobotix.ui.view.graph.AxisInfo.AxisInfo
AxisInfo(double base, double extent)
Definition:
AxisInfo.java:59
com.generalrobotix.ui.view.graph.AxisInfo.unitColor
Color unitColor
Definition:
AxisInfo.java:42
com.generalrobotix
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:02