Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.generalrobotix.ui.view.graph.XYLineGraph Class Reference
Inheritance diagram for com.generalrobotix.ui.view.graph.XYLineGraph:
Inheritance graph
[legend]

Classes

class  DataSeriesInfo
 

Public Member Functions

void addDataSeries (DataSeries ds, AxisInfo xai, AxisInfo yai, RGB rgb, String legend)
 
AxisInfo getAxisInfo (int axis)
 
Iterator getDataSeries ()
 
String getLegendLabel (DataSeries ds)
 
Canvas getLegendPanel ()
 
RGB getStyle (DataSeries ds)
 
void paintControl (PaintEvent e)
 
void removeDataSeries (DataSeries ds)
 
void setAxisInfo (int axis, AxisInfo ai)
 
void setBackColor (Color color)
 
void setBorderColor (Color color)
 
void setEPSMode (boolean flag)
 
void setLegend (LegendPanel legend)
 
void setLegendLabel (DataSeries ds, String legend)
 
void setStyle (DataSeries ds, RGB rgb)
 
 XYLineGraph (Composite parent, int leftMargin, int rightMargin, int topMargin, int bottomMargin)
 

Static Public Attributes

static final int AXIS_BOTTOM = 3
 
static final int AXIS_LEFT = 0
 
static final int AXIS_RIGHT = 1
 
static final int AXIS_TOP = 2
 

Private Member Functions

void drawAxis (GC gc, int xl, int yt, int xr, int yb, int axis, int flag)
 

Private Attributes

AxisInfo[] axisInfo_
 
Color backColor_
 
Color borderColor_
 
int bottomMargin_
 
HashMap< DataSeries, DataSeriesInfodsInfoMap_
 
ArrayList< DataSeriesdsList_
 
boolean epsMode_
 
int leftMargin_
 
LegendPanel legendPanel_
 
int rightMargin_
 
int topMargin_
 

Static Private Attributes

static final int DRAW_AXIS = 1
 
static final int DRAW_GRID = 8
 
static final int DRAW_LABEL = 4
 
static final int DRAW_MARKER = 16
 
static final int DRAW_TICK = 2
 
static final int EPS_SCALE = 20
 
static final int LABEL_GAP_BOTTOM = -5
 
static final int LABEL_GAP_LEFT = 5
 
static final int LABEL_GAP_RIGHT = 4
 
static final int LABEL_GAP_TOP = 3
 
static final int MIN_HEIGHT = 30
 
static final int MIN_WIDTH = 30
 

Detailed Description

折れ線グラフクラス

Author
Kernel Inc.
Version
1.0 (2001/8/20)

Definition at line 33 of file XYLineGraph.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.view.graph.XYLineGraph.XYLineGraph ( Composite  parent,
int  leftMargin,
int  rightMargin,
int  topMargin,
int  bottomMargin 
)
inline

コンストラクタ

Parameters
leftMarginint 左マージン
rightMarginint 右マージン
topMarginint 上マージン
bottomMarginint 下マージン

Definition at line 91 of file XYLineGraph.java.

Member Function Documentation

void com.generalrobotix.ui.view.graph.XYLineGraph.addDataSeries ( DataSeries  ds,
AxisInfo  xai,
AxisInfo  yai,
RGB  rgb,
String  legend 
)
inline

データ系列の追加

Parameters
dsDataSeries データ系列
xaiAxisInfo X軸情報
yaiAxisInfo Y軸情報
colorColor 色
legendString 凡例文字列

Definition at line 174 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.drawAxis ( GC  gc,
int  xl,
int  yt,
int  xr,
int  yb,
int  axis,
int  flag 
)
inlineprivate

軸の描画

Parameters
gGraphics グラフィックス
widthint 幅
heightint 高さ
axisint 軸種別
flagint 描画フラグ

Definition at line 482 of file XYLineGraph.java.

AxisInfo com.generalrobotix.ui.view.graph.XYLineGraph.getAxisInfo ( int  axis)
inline

軸情報の取得 axisにはAXIS_LEFT,AXIS_RIGHT,AXIS_TOP,AXIS_BOTTOMを指定する

Parameters
axisint 軸指定
Returns
AxisInfo 軸情報

Definition at line 234 of file XYLineGraph.java.

Iterator com.generalrobotix.ui.view.graph.XYLineGraph.getDataSeries ( )
inline

全データ系列の取得

Returns
Iterator 全データ系列

Definition at line 208 of file XYLineGraph.java.

String com.generalrobotix.ui.view.graph.XYLineGraph.getLegendLabel ( DataSeries  ds)
inline

データ系列の凡例文字列の取得

Parameters
dsデータ系列
Returns
凡例文字列

Definition at line 280 of file XYLineGraph.java.

Canvas com.generalrobotix.ui.view.graph.XYLineGraph.getLegendPanel ( )
inline

凡例パネルの取得

Returns
JPanel 凡例パネル

Definition at line 290 of file XYLineGraph.java.

RGB com.generalrobotix.ui.view.graph.XYLineGraph.getStyle ( DataSeries  ds)
inline

データ系列の色の取得

Parameters
dsデータ系列
Returns

Definition at line 258 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.paintControl ( PaintEvent  e)
inline

描画

Parameters
gGraphics グラフィックス

Definition at line 299 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.removeDataSeries ( DataSeries  ds)
inline

データ系列の削除

Parameters
dsDataSeries データ系列

Definition at line 193 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setAxisInfo ( int  axis,
AxisInfo  ai 
)
inline

軸情報の設定 axisにはAXIS_LEFT,AXIS_RIGHT,AXIS_TOP,AXIS_BOTTOMを指定する aiにnullを指定した場合はその軸は非表示

Parameters
axisint 軸指定
aiAxisInfo 軸情報

Definition at line 220 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setBackColor ( Color  color)
inline

背景色の設定

Parameters
colorColor 色

Definition at line 148 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setBorderColor ( Color  color)
inline

周辺色の設定

Parameters
colorColor 色

Definition at line 159 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setEPSMode ( boolean  flag)
inline

EPSモード設定

Parameters
flagフラグ

Definition at line 137 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setLegend ( LegendPanel  legend)
inline

Definition at line 777 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setLegendLabel ( DataSeries  ds,
String  legend 
)
inline

データ系列の凡例文字列の設定

Parameters
dsDataSeries データ系列
legendString 凡例文字列

Definition at line 269 of file XYLineGraph.java.

void com.generalrobotix.ui.view.graph.XYLineGraph.setStyle ( DataSeries  ds,
RGB  rgb 
)
inline

データ系列の色の設定

Parameters
dsDataSeries データ系列
colorColor 色

Definition at line 246 of file XYLineGraph.java.

Member Data Documentation

final int com.generalrobotix.ui.view.graph.XYLineGraph.AXIS_BOTTOM = 3
static

Definition at line 41 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.AXIS_LEFT = 0
static

Definition at line 38 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.AXIS_RIGHT = 1
static

Definition at line 39 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.AXIS_TOP = 2
static

Definition at line 40 of file XYLineGraph.java.

AxisInfo [] com.generalrobotix.ui.view.graph.XYLineGraph.axisInfo_
private

Definition at line 68 of file XYLineGraph.java.

Color com.generalrobotix.ui.view.graph.XYLineGraph.backColor_
private

Definition at line 75 of file XYLineGraph.java.

Color com.generalrobotix.ui.view.graph.XYLineGraph.borderColor_
private

Definition at line 76 of file XYLineGraph.java.

int com.generalrobotix.ui.view.graph.XYLineGraph.bottomMargin_
private

Definition at line 66 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.DRAW_AXIS = 1
staticprivate

Definition at line 51 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.DRAW_GRID = 8
staticprivate

Definition at line 54 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.DRAW_LABEL = 4
staticprivate

Definition at line 53 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.DRAW_MARKER = 16
staticprivate

Definition at line 55 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.DRAW_TICK = 2
staticprivate

Definition at line 52 of file XYLineGraph.java.

HashMap<DataSeries, DataSeriesInfo> com.generalrobotix.ui.view.graph.XYLineGraph.dsInfoMap_
private

Definition at line 71 of file XYLineGraph.java.

ArrayList<DataSeries> com.generalrobotix.ui.view.graph.XYLineGraph.dsList_
private

Definition at line 70 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.EPS_SCALE = 20
staticprivate

Definition at line 57 of file XYLineGraph.java.

boolean com.generalrobotix.ui.view.graph.XYLineGraph.epsMode_
private

Definition at line 79 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.LABEL_GAP_BOTTOM = -5
staticprivate

Definition at line 49 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.LABEL_GAP_LEFT = 5
staticprivate

Definition at line 46 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.LABEL_GAP_RIGHT = 4
staticprivate

Definition at line 47 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.LABEL_GAP_TOP = 3
staticprivate

Definition at line 48 of file XYLineGraph.java.

int com.generalrobotix.ui.view.graph.XYLineGraph.leftMargin_
private

Definition at line 63 of file XYLineGraph.java.

LegendPanel com.generalrobotix.ui.view.graph.XYLineGraph.legendPanel_
private

Definition at line 73 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.MIN_HEIGHT = 30
staticprivate

Definition at line 43 of file XYLineGraph.java.

final int com.generalrobotix.ui.view.graph.XYLineGraph.MIN_WIDTH = 30
staticprivate

Definition at line 44 of file XYLineGraph.java.

int com.generalrobotix.ui.view.graph.XYLineGraph.rightMargin_
private

Definition at line 64 of file XYLineGraph.java.

int com.generalrobotix.ui.view.graph.XYLineGraph.topMargin_
private

Definition at line 65 of file XYLineGraph.java.


The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:44