bibliothek.gui.dock.themes
Interface ColorScheme

All Known Implementing Classes:
BasicColorScheme, BubbleColorScheme, DefaultColorScheme, EclipseColorScheme, FlatColorScheme, SimpleBubbleColorScheme

public interface ColorScheme

A ColorScheme is a collection of colors and providers. A ColorScheme cannot change its content.

Author:
Benjamin Sigg

Method Summary
 Color getColor(String id)
          Searches for a color that can be used for the identifier id.
<D extends DockColor>
ColorProviderFactory<D,? extends ColorProvider<D>>
getProvider(Class<D> kind)
          Searches for a factory for a provider that can be used for a specific kind of DockColor.
 void transmitAll(Priority priority, ColorManager manager)
          Transmits all values in this scheme to manager.
 boolean updateUI()
          Called when the LookAndFeel changed and this scheme perhaps needs to update its colors.
 

Method Detail

getColor

Color getColor(String id)
Searches for a color that can be used for the identifier id.

Parameters:
id - an identifier of some color
Returns:
some color or null

getProvider

<D extends DockColor> ColorProviderFactory<D,? extends ColorProvider<D>> getProvider(Class<D> kind)
Searches for a factory for a provider that can be used for a specific kind of DockColor.

Parameters:
kind - the kind of color the provider should support
Returns:
some a factory for a provider or null

transmitAll

void transmitAll(Priority priority,
                 ColorManager manager)
Transmits all values in this scheme to manager.

Parameters:
priority - the priority to use when registering colors and providers.
manager - the manager to fill

updateUI

boolean updateUI()
Called when the LookAndFeel changed and this scheme perhaps needs to update its colors.

Returns:
true if anything changed, false if this scheme was not changed.