|
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--com.ogane.xi.Meter
Meterクラスは針式メーターです。
針式メーターの目盛り盤には目盛りと単位を示す文字が表示されます。
目盛りには、主目盛りと副目盛りがありその数を設定できます。 主目盛りには数字が表示され、針式メータの大きさに応じて文字の大きさと頻度が自動的に 調整されます。副目盛りは主目盛りと主目盛りの間に表示される少し小さめの目盛りで 数字は表示されません。 また、目盛りは安全領域(GreenZone)を注意領域(YellowZone)と危険領域(RedZone)を 色分けして表示することができます。
単位を表わす文字は目盛りの下方の中央部に表示され、メータの大きさに応じて文字の大きさ が自動的に調整されます。
このクラスは JIM(Java Industrial Monitoring Framework)V1.0の仕様に適合しています。
| クラス java.awt.Canvas から継承した内部クラス |
Canvas.AccessibleAWTCanvas |
| クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
| クラス 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 |
| コンストラクタの概要 | |
Meter()
単位のない針式メーターを作成します。 |
|
Meter(String theUnit,
double theValue,
double theMinimum,
double theMaximum)
副目盛りのない針式メーターを作成します。 |
|
Meter(String theUnit,
double theValue,
double theMinimum,
double theMaximum,
int theNumMajorTicks,
int theNumMinorTicks)
針式メーターを作成します。 |
|
| メソッドの概要 | |
void |
addNotify()
ネイティブスクリーンリソースに接続して、 このコンポーネントを表示可能にします。 |
void |
dataValueChanged(DataValueChangeEvent event)
|
Color |
getGreenZoneColor()
安全領域の色を返します。 |
double |
getMaximum()
最大値を返します。 |
double |
getMinimum()
最小値を返します。 |
Dimension |
getMinimumSize()
針式メータの最小サイズを返します。 |
Color |
getNeedleColor()
針の色を返します。 |
int |
getNumMajorTicks()
主目盛りの数を返します。 |
int |
getNumMinorTicks()
副目盛りの数を返します。 |
Color |
getPanelColor()
目盛盤の色を返します。 |
Dimension |
getPreferredSize()
針式メータの推奨サイズを返します。 |
double |
getRedZone()
危険領域が始まる値を返します。 |
Color |
getRedZoneColor()
危険領域の色を返します。 |
Class[][] |
getReferableDataHolderTypeInfo(DataReferencer dataRef)
|
DataReferencer |
getReferencer()
データリファレンサーを返します。 |
Color |
getTickColor()
目盛の色を返します。 |
String |
getTickLabelFormat()
目盛りの書式を返します。 |
String |
getUnit()
単位を返します。 |
double |
getValue()
現在値を返します。 |
double |
getYellowZone()
注意領域が始まる値を返します。 |
Color |
getYellowZoneColor()
注意領域の色を返します。 |
void |
paint(Graphics g)
針式メータを描画します。 |
void |
removeNotify()
ネイティブスクリーンリソースを破棄して、 このコンポーネントを非表示にします。 |
void |
setBackground(Color theColor)
背景色を指定します。 |
void |
setBounds(int x,
int y,
int w,
int h)
指定された境界の矩形領域に針式メータを再形成します。 |
void |
setFont(Font theFont)
字体を指定します。 |
void |
setForeground(Color theColor)
前景色を指定します。 |
void |
setGreenZoneColor(Color theColor)
安全領域(GreenZone)の色を設定します。 |
void |
setMaximum(double theMaximum)
最大値を設定します。 |
void |
setMinimum(double theMinimum)
最小値を設定します。 |
void |
setNeedleColor(Color theColor)
針の色を設定します。 |
void |
setNumMajorTicks(int theNumMajorTicks)
主目盛りの数を設定します。 |
void |
setNumMinorTicks(int theNumMinorTicks)
副目盛りの数を設定します。 |
void |
setNumTicks(int theNumMajorTicks,
int theNumMinorTicks)
目盛りの数を設定します。 |
void |
setPanelColor(Color theColor)
目盛盤の色を設定します。 |
void |
setRedZone(double theValue)
危険領域(RedZone)が始まる値を設定します。 |
void |
setRedZone(double theValue,
Color theColor)
危険領域(RedZone)を設定します。 |
void |
setRedZoneColor(Color theColor)
危険領域(RedZone)の色を設定します。 |
void |
setReferencer(DataReferencer newDHR)
データリファレンサーを設定します。 |
void |
setSize(int w,
int h)
指定された幅と高さに針式メータを変更します。 |
void |
setTickColor(Color theColor)
目盛の色を設定します。 |
void |
setTickLabelFormat(String theTickLabelFormat)
目盛りの書式を設定します。 |
void |
setUnit(String theUnit)
単位を表示します。 |
void |
setValue(double theValue)
現在値を設定します。 |
void |
setYellowZone(double theValue)
注意領域(YellowZone)が始まる値を設定します。 |
void |
setYellowZone(double theValue,
Color theColor)
注意領域(YellowZone)を設定します。 |
void |
setYellowZoneColor(Color theColor)
注意領域(YellowZone)の色を設定します。 |
void |
update(Graphics g)
針式メータを更新します。 |
| クラス java.awt.Canvas から継承したメソッド |
getAccessibleContext |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public Meter(String theUnit,
double theValue,
double theMinimum,
double theMaximum,
int theNumMajorTicks,
int theNumMinorTicks)
theUnit - 単位theValue - 初期値theMinimum - 最小値theMaximum - 最大値theNumMajorTicks - 主目盛りの数theNumMinorTicks - 副目盛りの数
public Meter(String theUnit,
double theValue,
double theMinimum,
double theMaximum)
theUnit - 単位theValue - 初期値theMinimum - 最小値theMaximum - 最大値public Meter()
| メソッドの詳細 |
public void setBackground(Color theColor)
Component 内の setBackgroundtheColor - 背景色public void setForeground(Color theColor)
Component 内の setForegroundtheColor - 前景色public void setFont(Font theFont)
Component 内の setFonttheFont - 字体public void setUnit(String theUnit)
theUnit - 単位public void setValue(double theValue)
Indicator 内の setValuetheValue - 現在値public void setMaximum(double theMaximum)
theValue - 最大値public void setMinimum(double theMinimum)
theValue - 最小値
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 setGreenZoneColor(Color theColor)
theColor - 安全領域の色public void setYellowZoneColor(Color theColor)
theColor - 注意領域の色public void setRedZoneColor(Color theColor)
theColor - 危険領域の色public void setYellowZone(double theValue)
theValue - 注意領域が始まる値
public void setYellowZone(double theValue,
Color theColor)
theColor - 注意領域の色theValue - 注意領域が始まる値public void setRedZone(double theValue)
theValue - 危険領域が始まる値
public void setRedZone(double theValue,
Color theColor)
theColor - 危険領域の色theValue - 危険領域が始まる値public void setPanelColor(Color theColor)
theColor - 目盛盤の色public void setTickColor(Color theColor)
theColor - 目盛の色public void setNeedleColor(Color theColor)
theColor - 針の色public String getUnit()
public double getValue()
public double getMaximum()
public double getMinimum()
public int getNumMajorTicks()
public int getNumMinorTicks()
public String getTickLabelFormat()
public double getYellowZone()
public double getRedZone()
public Color getGreenZoneColor()
public Color getYellowZoneColor()
public Color getRedZoneColor()
public Color getPanelColor()
public Color getTickColor()
public Color getNeedleColor()
public void setSize(int w,
int h)
Component 内の setSizew - 針式メータの幅h - 針式メータの高さ
public void setBounds(int x,
int y,
int w,
int h)
Component 内の setBoundsx - x座標y - y座標w - 針式メータの幅h - 針式メータの高さ public Dimension getPreferredSize()
Component 内の getPreferredSizepublic Dimension getMinimumSize()
Component 内の getMinimumSizepublic void update(Graphics g)
Component 内の updateg - Graphicsコンテキストpublic void paint(Graphics g)
Canvas 内の paintg - Graphicsコンテキストpublic void setReferencer(DataReferencer newDHR)
newDHR - データリファレンサーpublic DataReferencer getReferencer()
public void addNotify()
Canvas 内の addNotifypublic void removeNotify()
Component 内の removeNotifypublic void dataValueChanged(DataValueChangeEvent event)
DataValueChangeListener 内の dataValueChangedpublic Class[][] getReferableDataHolderTypeInfo(DataReferencer dataRef)
DataReferencerOwner 内の getReferableDataHolderTypeInfo
|
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Copyright 2000-2010, 大金システム設計事務所. All Rights Reserved.
2660-73 Mawatari, Hitachinaka, Ibaraki, 312-0012 JAPAN.
info@ogane.com