bibliothek.gui.dock.util.laf
Interface LookAndFeelColors

All Known Implementing Classes:
AbstractLookAndFeelColors, DefaultLookAndFeelColors, Nimbus6u10, Windows

public interface LookAndFeelColors

LookAndFeelColors is a wrapper around a LookAndFeel and allows access to a set of colors used for specific purposes.

Author:
Benjamin Sigg
See Also:
DockUI.registerColors(String, LookAndFeelColors)

Field Summary
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.
 
Method Summary
 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.
 

Field Detail

TITLE_BACKGROUND

static final String TITLE_BACKGROUND
The background of unselected title components. Normally the same as an unselected menu item.

See Also:
Constant Field Values

TITLE_FOREGROUND

static final String TITLE_FOREGROUND
The foreground of unselected title components. Normally the same as an unselected menu item.

See Also:
Constant Field Values

TITLE_SELECTION_BACKGROUND

static final String TITLE_SELECTION_BACKGROUND
The background of selected title components. Normally the same as a selected menu item.

See Also:
Constant Field Values

TITLE_SELECTION_FOREGROUND

static final String TITLE_SELECTION_FOREGROUND
The foreground of selected title components. Normally the same as a selected menu item.

See Also:
Constant Field Values

SELECTION

static final String SELECTION
The color used for ordinary selections. Normally the same as the background color of a selection in a textfield.

See Also:
Constant Field Values

PANEL_BACKGROUND

static final String PANEL_BACKGROUND
The background color for any kind of panels

See Also:
Constant Field Values

PANEL_FOREGROUND

static final String PANEL_FOREGROUND
The foreground color for any kind of panels

See Also:
Constant Field Values

CONTROL_SHADOW

static final String CONTROL_SHADOW
The shadow around controls

See Also:
Constant Field Values

WINDOW_BORDER

static final String WINDOW_BORDER
The color for borderes around internal windows.

See Also:
Constant Field Values
Method Detail

getColor

Color getColor(String key)
Searches for a color respecting the properties of the current LookAndFeel.

Parameters:
key - one of the string keys defined in this interface, clients may extend the set of keys.
Returns:
the color that matches key or null

bind

void bind()
Called when this objects gets activated. The object may now register listeners or do other resource hungry stuff.


unbind

void unbind()
Called when this objects gets deactivated. The object may now unregister listeners and free resources.


addListener

void addListener(LookAndFeelColorsListener listener)
Adds a listener to this object, the listener must be informed when a color changes.

Parameters:
listener - the listener to add

removeListener

void removeListener(LookAndFeelColorsListener listener)
Removes a listener from this object.

Parameters:
listener - the listener to remove