public interface LookAndFeelColors
LookAndFeelColors
is a wrapper around a LookAndFeel
and allows access to a set of colors used for specific purposes.DockUI.registerColors(String, LookAndFeelColors)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTROL_SHADOW
The shadow around controls
|
static java.lang.String |
PANEL_BACKGROUND
The background color for any kind of panels
|
static java.lang.String |
PANEL_FOREGROUND
The foreground color for any kind of panels
|
static java.lang.String |
SELECTION
The color used for ordinary selections.
|
static java.lang.String |
TITLE_BACKGROUND
The background of unselected title components.
|
static java.lang.String |
TITLE_FOREGROUND
The foreground of unselected title components.
|
static java.lang.String |
TITLE_SELECTION_BACKGROUND
The background of selected title components.
|
static java.lang.String |
TITLE_SELECTION_FOREGROUND
The foreground of selected title components.
|
static java.lang.String |
WINDOW_BORDER
The color for borders around internal windows.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(LookAndFeelColorsListener listener)
Adds a listener to this object, the listener must be informed when
a color changes.
|
void |
bind()
Called when this objects gets activated.
|
java.awt.Color |
getColor(java.lang.String key)
Searches for a color respecting the properties of the current
LookAndFeel.
|
void |
removeListener(LookAndFeelColorsListener listener)
Removes a listener from this object.
|
void |
unbind()
Called when this objects gets deactivated.
|
static final java.lang.String TITLE_BACKGROUND
static final java.lang.String TITLE_FOREGROUND
static final java.lang.String TITLE_SELECTION_BACKGROUND
static final java.lang.String TITLE_SELECTION_FOREGROUND
static final java.lang.String SELECTION
static final java.lang.String PANEL_BACKGROUND
static final java.lang.String PANEL_FOREGROUND
static final java.lang.String CONTROL_SHADOW
static final java.lang.String WINDOW_BORDER
java.awt.Color getColor(java.lang.String key)
key
- one of the string keys defined in this interface, clients
may extend the set of keys.key
or null
void bind()
void unbind()
void addListener(LookAndFeelColorsListener listener)
listener
- the listener to addvoid removeListener(LookAndFeelColorsListener listener)
listener
- the listener to remove