javax.swing.colorchooser
クラス DefaultColorSelectionModel
java.lang.Object
|
+--javax.swing.colorchooser.DefaultColorSelectionModel
- public class DefaultColorSelectionModel
- extends Object
- implements ColorSelectionModel, Serializable
ColorSelectionModel の汎用の実装です。
- 関連項目:
Color
, 直列化された形式
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
changeEvent
protected transient ChangeEvent changeEvent
- イベント専用の (読み込み専用) 状態がソースプロパティなので、必要な ChangeEvent の数はモデルインスタンスごとに 1 つです。ここで生成されたイベントのソースは、常に「this」です。
listenerList
protected EventListenerList listenerList
DefaultColorSelectionModel
public DefaultColorSelectionModel()
- デフォルトのコンストラクタです。selectedColor を Color.white に初期化します。
DefaultColorSelectionModel
public DefaultColorSelectionModel(Color color)
- selectedColor を color に初期化します。
getSelectedColor
public Color getSelectedColor()
- 定義:
- インタフェース ColorSelectionModel 内の getSelectedColor
setSelectedColor
public void setSelectedColor(Color color)
- 定義:
- インタフェース ColorSelectionModel 内の setSelectedColor
addChangeListener
public void addChangeListener(ChangeListener l)
- ChangeListener をモデルに追加します。
- 定義:
- インタフェース ColorSelectionModel 内の addChangeListener
removeChangeListener
public void removeChangeListener(ChangeListener l)
- モデルから ChangeListener を削除します。
- 定義:
- インタフェース ColorSelectionModel 内の removeChangeListener
fireStateChanged
protected void fireStateChanged()
- 各 ChangeListener で stateChanged() メソッドを実行します。
- 関連項目:
#setRangeProperties
,
EventListenerList
バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.