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

Public Member Functions

void addLegend (LegendInfo legend)
 
Dimension getMinimalSize ()
 
 LegendPanel (Composite parent, Font font, Color backColor, Color labelColor)
 
void paintControl (PaintEvent e)
 
void removeLegend (LegendInfo legend)
 
void setBackColor (Color color)
 
void setFont (Font font)
 
void setLabelColor (Color color)
 

Private Member Functions

void updateSize ()
 

Private Attributes

Color backColor_
 
Font font_
 
Color labelColor_
 
ArrayList< LegendInfolegendList_
 
Dimension size_
 

Static Private Attributes

static final int GAP_X = 10
 
static final int GAP_Y = 5
 
static final int LEN_LINE = 20
 
static final int MARGIN_X = 15
 
static final int MARGIN_Y = 15
 

Detailed Description

凡例パネルクラス

Definition at line 22 of file LegendPanel.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.view.graph.LegendPanel.LegendPanel ( Composite  parent,
Font  font,
Color  backColor,
Color  labelColor 
)
inline

コンストラクタ

Parameters
fontFont ラベルフォント
backColorColor 背景色
labelColorColor ラベル色

Definition at line 49 of file LegendPanel.java.

Member Function Documentation

void com.generalrobotix.ui.view.graph.LegendPanel.addLegend ( LegendInfo  legend)
inline

凡例追加

Parameters
legendLegendInfo 凡例情報

Definition at line 71 of file LegendPanel.java.

Dimension com.generalrobotix.ui.view.graph.LegendPanel.getMinimalSize ( )
inline

必要十分サイズ取得 凡例を表示するのに必要十分なサイズを取得する (現時点では使用していない)

Definition at line 164 of file LegendPanel.java.

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

描画

Parameters
gGraphics グラフィックス

Definition at line 129 of file LegendPanel.java.

void com.generalrobotix.ui.view.graph.LegendPanel.removeLegend ( LegendInfo  legend)
inline

凡例削除

Parameters
legendLegendInfo 凡例情報

Definition at line 83 of file LegendPanel.java.

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

背景色

Parameters
backColorColor 背景色

Definition at line 107 of file LegendPanel.java.

void com.generalrobotix.ui.view.graph.LegendPanel.setFont ( Font  font)
inline

ラベルフォント設定

Parameters
fontFont ラベルフォント

Definition at line 96 of file LegendPanel.java.

void com.generalrobotix.ui.view.graph.LegendPanel.setLabelColor ( Color  color)
inline

ラベル色設定

Parameters
labelColorColor ラベル色

Definition at line 118 of file LegendPanel.java.

void com.generalrobotix.ui.view.graph.LegendPanel.updateSize ( )
inlineprivate

サイズ更新 凡例の数や長さに応じてパネルのサイズを決定する

Definition at line 173 of file LegendPanel.java.

Member Data Documentation

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

Definition at line 36 of file LegendPanel.java.

Font com.generalrobotix.ui.view.graph.LegendPanel.font_
private

Definition at line 35 of file LegendPanel.java.

final int com.generalrobotix.ui.view.graph.LegendPanel.GAP_X = 10
staticprivate

Definition at line 28 of file LegendPanel.java.

final int com.generalrobotix.ui.view.graph.LegendPanel.GAP_Y = 5
staticprivate

Definition at line 29 of file LegendPanel.java.

Color com.generalrobotix.ui.view.graph.LegendPanel.labelColor_
private

Definition at line 37 of file LegendPanel.java.

ArrayList<LegendInfo> com.generalrobotix.ui.view.graph.LegendPanel.legendList_
private

Definition at line 34 of file LegendPanel.java.

final int com.generalrobotix.ui.view.graph.LegendPanel.LEN_LINE = 20
staticprivate

Definition at line 30 of file LegendPanel.java.

final int com.generalrobotix.ui.view.graph.LegendPanel.MARGIN_X = 15
staticprivate

Definition at line 26 of file LegendPanel.java.

final int com.generalrobotix.ui.view.graph.LegendPanel.MARGIN_Y = 15
staticprivate

Definition at line 27 of file LegendPanel.java.

Dimension com.generalrobotix.ui.view.graph.LegendPanel.size_
private

Definition at line 38 of file LegendPanel.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