|
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--com.ogane.xi.Bar
Barクラスは棒式のアナログメーターです。
棒式メーターの形状は縦型(VERTICAL)と横形(HORIZONTAL)があります。 目盛りには、主目盛りと副目盛りがありその数を設定できます。 主目盛りには数字が表示され、メータの大きさに応じて文字の大きさと頻度が 自動的に調整されます。副目盛りは主目盛りと主目盛りの間に表示される 少し小さめの目盛りで数字は表示されません。
このクラスは JIM(Java Industrial Monitoring Framework)V1.0の仕様に適合しています。
クラス java.awt.Canvas から継承した内部クラス |
Canvas.AccessibleAWTCanvas |
クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
フィールドの概要 | |
static int |
HORIZONTAL
横型 |
static int |
VERTICAL
縦型 |
クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
Bar()
縦型の棒式メーターを作成します。 |
|
Bar(int theOrientation)
棒式メーターを作成します。 |
|
Bar(int theOrientation,
double theValue,
double theMinimum,
double theMaximum,
int theNumMajorTicks,
int theNumMinorTicks)
棒式メーターを作成します。 |
メソッドの概要 | |
void |
addNotify()
ネイティブスクリーンリソースに接続して、 このコンポーネントを表示可能にします。 |
void |
dataValueChanged(DataValueChangeEvent event)
|
Color |
getBarColor()
棒の色を返します。 |
double |
getMaximum()
最大値を返します。 |
double |
getMinimum()
最小値を返します。 |
Dimension |
getMinimumSize()
最小の大きさを返します。 |
int |
getNumMajorTicks()
主目盛りの数を返します。 |
int |
getNumMinorTicks()
副目盛りの数を返します。 |
int |
getOrientation()
形状を返します。 |
Dimension |
getPreferredSize()
推奨サイズを返します。 |
Class[][] |
getReferableDataHolderTypeInfo(DataReferencer dataRef)
|
DataReferencer |
getReferencer()
データリファレンサーを返します。 |
Color |
getSpaceColor()
棒の背景色を返します。 |
Color |
getTickColor()
目盛の色を返します。 |
String |
getTickLabelFormat()
目盛りの書式を返します。 |
double |
getValue()
現在値を返します。 |
void |
paint(Graphics g)
描画メソッド。 |
void |
removeNotify()
ネイティブスクリーンリソースを破棄して、 このコンポーネントを非表示にします。 |
void |
setBackground(Color theColor)
背景色を指定します。 |
void |
setBarColor(Color theColor)
棒の色を設定します。 |
void |
setBounds(int x,
int y,
int w,
int h)
表示領域を設定します。 |
void |
setFont(Font theFont)
字体を指定します。 |
void |
setForeground(Color theColor)
前景色を指定します。 |
void |
setMaximum(double theMaximum)
最大値を設定します。 |
void |
setMinimum(double theMinimum)
最小値を設定します。 |
void |
setNumMajorTicks(int theNumMajorTicks)
主目盛りの数を設定します。 |
void |
setNumMinorTicks(int theNumMinorTicks)
副目盛りの数を設定します。 |
void |
setNumTicks(int theNumMajorTicks,
int theNumMinorTicks)
目盛りの数を設定します。 |
void |
setOrientation(int theOrientation)
形状を設定します。 |
void |
setReferencer(DataReferencer newDHR)
データリファレンサーを設定します。 |
void |
setSize(int w,
int h)
大きさを設定します。 |
void |
setSpaceColor(Color theColor)
棒の背景色を設定します。 |
void |
setTickColor(Color theColor)
目盛の色を設定します。 |
void |
setTickLabelFormat(String theTickLabelFormat)
目盛りの書式を設定します。 |
void |
setValue(double theValue)
現在値を設定します。 |
void |
update(Graphics g)
再描画メソッド。 |
クラス java.awt.Canvas から継承したメソッド |
getAccessibleContext |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int VERTICAL
public static final int HORIZONTAL
コンストラクタの詳細 |
public Bar(int theOrientation, double theValue, double theMinimum, double theMaximum, int theNumMajorTicks, int theNumMinorTicks)
theOrientation
- 形状、縦型または横型theValue
- 初期値theMinimum
- 最小値theMaximum
- 最大値theNumMajorTicks
- 主目盛りの数theNumMinorTicks
- 副目盛りの数public Bar(int theOrientation)
theOrientation
- 形状、縦型または横型public Bar()
メソッドの詳細 |
public void setOrientation(int theOrientation)
theOrientation
- 形状、縦型または横型public void setBackground(Color theColor)
Component
内の setBackground
theColor
- 背景色public void setForeground(Color theColor)
Component
内の setForeground
theColor
- 前景色public void setFont(Font theFont)
Component
内の setFont
theFont
- 字体public void setValue(double theValue)
Indicator
内の setValue
theValue
- 現在値public void setMaximum(double theMaximum)
theMaximum
- 最大値public void setMinimum(double theMinimum)
theMinimum
- 最小値public void setNumTicks(int theNumMajorTicks, int theNumMinorTicks)
theNumMajorTicks
- 主目盛りの数theNumMinorTicks
- 副目盛りの数public void setNumMajorTicks(int theNumMajorTicks)
theNumMajorTicks
- 主目盛りの数public void setNumMinorTicks(int theNumMinorTicks)
theNumMinorTicks
- 副目盛りの数public void setTickLabelFormat(String theTickLabelFormat)
theTickLabelFormat
- 目盛りの書式public void setBarColor(Color theColor)
theColor
- の色public void setSpaceColor(Color theColor)
theColor
- の色public void setTickColor(Color theColor)
theColor
- 目盛の色public int getOrientation()
public double getValue()
public double getMaximum()
public double getMinimum()
public int getNumMajorTicks()
public int getNumMinorTicks()
public String getTickLabelFormat()
public Color getBarColor()
public Color getSpaceColor()
public Color getTickColor()
public void setSize(int w, int h)
Component
内の setSize
w
- 幅h
- 高さpublic void setBounds(int x, int y, int w, int h)
Component
内の setBounds
x
- X座標y
- Y座標w
- 幅h
- 高さpublic Dimension getPreferredSize()
Component
内の getPreferredSize
public Dimension getMinimumSize()
Component
内の getMinimumSize
public void update(Graphics g)
Component
内の update
g
- Graphicsコンテキストpublic void paint(Graphics g)
Canvas
内の paint
g
- Graphicsコンテキストpublic void setReferencer(DataReferencer newDHR)
newDHR
- データリファレンサーpublic DataReferencer getReferencer()
public void addNotify()
Canvas
内の addNotify
public void removeNotify()
Component
内の removeNotify
public void dataValueChanged(DataValueChangeEvent event)
DataValueChangeListener
内の dataValueChanged
public Class[][] getReferableDataHolderTypeInfo(DataReferencer dataRef)
DataReferencerOwner
内の getReferableDataHolderTypeInfo
|
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright 2000-2010, 大金システム設計事務所. All Rights Reserved.
2660-73 Mawatari, Hitachinaka, Ibaraki, 312-0012 JAPAN.
info@ogane.com