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 String |
CONTROL_SHADOW
The shadow around controls
|
static String |
PANEL_BACKGROUND
The background color for any kind of panels
|
static String |
PANEL_FOREGROUND
The foreground color for any kind of panels
|
static String |
SELECTION
The color used for ordinary selections.
|
static String |
TITLE_BACKGROUND
The background of unselected title components.
|
static String |
TITLE_FOREGROUND
The foreground of unselected title components.
|
static String |
TITLE_SELECTION_BACKGROUND
The background of selected title components.
|
static String |
TITLE_SELECTION_FOREGROUND
The foreground of selected title components.
|
static String |
WINDOW_BORDER
The color for borderes 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.
|
Color |
getColor(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 String TITLE_BACKGROUND
static final String TITLE_FOREGROUND
static final String TITLE_SELECTION_BACKGROUND
static final String TITLE_SELECTION_FOREGROUND
static final String SELECTION
static final String PANEL_BACKGROUND
static final String PANEL_FOREGROUND
static final String CONTROL_SHADOW
static final String WINDOW_BORDER
Color getColor(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