public interface ColorSelectionModel
JColorChooser
component to represent the
selected color.Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Registers a listener to receive
ChangeEvent notifications
from this model. |
Color |
getSelectedColor()
Returns the selected color.
|
void |
removeChangeListener(ChangeListener listener)
Deregisters a listener so that it no longer receives
ChangeEvent
notifications from this action. |
void |
setSelectedColor(Color color)
Sets the selected color.
|
Color getSelectedColor()
void setSelectedColor(Color color)
color
- the selected color.void addChangeListener(ChangeListener listener)
ChangeEvent
notifications
from this model.listener
- the listener.void removeChangeListener(ChangeListener listener)
ChangeEvent
notifications from this action.listener
- the listener.