ColorSelectionModel.
java.awt.Color
| Modifier and Type | Field and Description |
|---|---|
| protected transient ChangeEvent | changeEvent
Only one |
| protected EventListenerList | listenerList
The listener list. |
| private Color |
| Access | Constructor and Description |
|---|---|
| public | DefaultColorSelectionModel()
Creates a |
| public | DefaultColorSelectionModel(Color
the new color)ColorCreates a |
| Modifier and Type | Method and Description |
|---|---|
| public void | addChangeListener(ChangeListener
the l)ChangeListener to be addedImplements javax. Adds a |
| protected void | |
| public ChangeListener[] | Returns: all of theChangeListeners added, or an empty
array if no listeners have been addedReturns an array of all the |
| public Color | Returns: the selectedColorImplements javax. Returns the selected |
| public void | removeChangeListener(ChangeListener
the l)ChangeListener to be removedImplements javax. Removes a |
| public void | setSelectedColor(Color
the new color)ColorImplements javax. Sets the selected color to |
| changeEvent | back to summary |
|---|---|
| protected transient ChangeEvent changeEvent Only one | |
| listenerList | back to summary |
|---|---|
| protected EventListenerList listenerList The listener list. | |
| selectedColor | back to summary |
|---|---|
| private Color selectedColor | |
| DefaultColorSelectionModel | back to summary |
|---|---|
| public DefaultColorSelectionModel() Creates a | |
| DefaultColorSelectionModel | back to summary |
|---|---|
| public DefaultColorSelectionModel(Color color) Creates a
| |
| addChangeListener | back to summary |
|---|---|
| public void addChangeListener(ChangeListener l) Implements javax. Adds a
| |
| fireStateChanged | back to summary |
|---|---|
| protected void fireStateChanged() Runs each
| |
| getChangeListeners | back to summary |
|---|---|
| public ChangeListener[] getChangeListeners() Returns an array of all the
| |
| getSelectedColor | back to summary |
|---|---|
| public Color getSelectedColor() Implements javax. Returns the selected
| |
| removeChangeListener | back to summary |
|---|---|
| public void removeChangeListener(ChangeListener l) Implements javax. Removes a
| |
| setSelectedColor | back to summary |
|---|---|
| public void setSelectedColor(Color color) Implements javax. Sets the selected color to
| |