|
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--com.ogane.xi.LED
LEDクラスはLEDを表示するクラスです。
LEDには名称を示す文字(ラベル)が表示できます。 ラベルを表示する位置はLEDの上(TOP)下(BOTTOM)左(LEFT)右(RIGHT)のいずれかです。
LEDは点灯状態(ON)と消灯状態(OFF)のいずれかの状態となります。
LEDの発光色は緑(GREEN)、赤(RED)、黄色(YELLOW)のいずれかです。
このクラスは JIM(Java Industrial Monitoring Framework)V1.0の仕様に適合しています。
| クラス java.awt.Canvas から継承した内部クラス |
Canvas.AccessibleAWTCanvas |
| クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
| フィールドの概要 | |
static int |
BOTTOM
|
static int |
GREEN
|
static int |
LEFT
|
static int |
OFF
|
static int |
ON
|
static int |
RED
|
static int |
RIGHT
|
static int |
TOP
|
static int |
YELLOW
|
| クラス 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 |
| コンストラクタの概要 | |
LED()
ラベルの無い緑色で消灯状態のLEDを作成します。 |
|
LED(int theColor)
ラベルなしで消灯状態のLEDを作成します。 |
|
LED(int theColor,
int theState,
String theLabel,
int thePosition)
LEDを作成します。 |
|
LED(int theColor,
String theLabel)
消灯状態のLEDを作成します。 |
|
| メソッドの概要 | |
void |
addNotify()
ネイティブスクリーンリソースに接続して、 このコンポーネントを表示可能にします。 |
void |
dataValueChanged(DataValueChangeEvent event)
|
int |
getColor()
発光色を返します。 |
Font |
getFont()
字体を返します。 |
String |
getLabel()
ラベルを返します。 |
int |
getLabelPosition()
ラベルの位置を返します。 |
Dimension |
getMinimumSize()
LEDの最小サイズを返します。 |
Dimension |
getPreferredSize()
LEDの推奨サイズを返します。 |
Class[][] |
getReferableDataHolderTypeInfo(DataReferencer dr)
|
DataReferencer |
getReferencer()
データリファレンサーを返します。 |
int |
getState()
値を返します。 |
double |
getThreshould()
しきい値を返します。 |
double |
getValue()
状態を返します。 |
void |
paint(Graphics g)
LEDを描画します。 |
void |
removeNotify()
ネイティブスクリーンリソースを破棄して、 このコンポーネントを非表示にします。 |
void |
setBackground(Color theColor)
背景色を指定します。 |
void |
setBounds(int x,
int y,
int w,
int h)
指定された境界の矩形領域にLEDを再形成します。 |
void |
setColor(int theColor)
発光色を設定します。 |
void |
setFont(Font theFont)
字体を指定します。 |
void |
setForeground(Color theColor)
前景色を指定します。 |
void |
setLabel(String theLabel)
ラベルを設定します。 |
void |
setLabelPosition(int thePosition)
ラベルの位置を設定します。 |
void |
setReferencer(DataReferencer newDHR)
データリファレンサーを設定します。 |
void |
setSize(int w,
int h)
指定された大きさにLEDを変更します。 |
void |
setState(int theState)
状態を設定します。 |
void |
setThreshould(double theValue)
しきい値を設定します。 |
void |
setValue(double theValue)
値を設定します。 |
void |
update(Graphics g)
LEDを更新します。 |
| クラス java.awt.Canvas から継承したメソッド |
getAccessibleContext |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public static final int RIGHT
public static final int LEFT
public static final int TOP
public static final int BOTTOM
public static final int OFF
public static final int ON
public static final int GREEN
public static final int RED
public static final int YELLOW
| コンストラクタの詳細 |
public LED(int theColor,
int theState,
String theLabel,
int thePosition)
theColor - 発光色theState - 状態theLabe - ラベルtheOrientation - ラベルの位置
public LED(int theColor,
String theLabel)
theColor - 発光色theLabe - ラベルpublic LED(int theColor)
theColor - 発光色public LED()
| メソッドの詳細 |
public void setLabel(String theLabel)
theLabe - ラベルpublic String getLabel()
public void setLabelPosition(int thePosition)
thePosition - ラベルの位置public int getLabelPosition()
public void setState(int theState)
theState - 状態public void setValue(double theValue)
Indicator 内の setValuetheValue - 値public void setThreshould(double theValue)
theValue - 状態public double getThreshould()
public double getValue()
public int getState()
public void setColor(int theColor)
theColor - 発光色public int getColor()
public void setBackground(Color theColor)
Component 内の setBackgroundtheColor - 背景色public void setForeground(Color theColor)
Component 内の setForegroundtheColor - 前景色public void setFont(Font theFont)
Component 内の setFonttheFont - 字体public Font getFont()
Component 内の getFont
public void setSize(int w,
int h)
Component 内の setSizew - LEDの幅h - LEDの高さ
public void setBounds(int x,
int y,
int w,
int h)
Component 内の setBoundsx - x座標y - y座標w - LEDの幅h - LEDの高さ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 dr)
DataReferencerOwner 内の getReferableDataHolderTypeInfo
|
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Copyright 2000-2010, 大金システム設計事務所. All Rights Reserved.
2660-73 Mawatari, Hitachinaka, Ibaraki, 312-0012 JAPAN.
info@ogane.com