bibliothek.gui.dock.util.color
Interface ColorProvider<D extends DockColor>

Type Parameters:
D - the type of DockColors this provider can handle
All Known Implementing Classes:
BasicTabTransmitter, BasicTitleTransmitter, BubbleDisplayerTransmitter, BubbleTabTransmitter, BubbleTitleTransmitter, ColorTransmitter, EclipseTabTransmitter, FlatTabTransmitter, FlatTitleTransmitter, MultiColorProvider, TabColorTransmitter, TitleColorTransmitter

public interface ColorProvider<D extends DockColor>

A ColorProvider is a layer between a ColorManager and a DockColor. A provider can exchange the color that is used for some DockColor.

Author:
Benjamin Sigg

Method Summary
 void add(String id, D observer)
          Adds a listener for some type of color to this provider.
 void remove(String id, D observer)
          Removes a listener for some type of color from this provider.
 void set(String id, Color color, D observer)
          Called by a ColorManager when one color has been exchanged.
 

Method Detail

add

void add(String id,
         D observer)
Adds a listener for some type of color to this provider.

Parameters:
id - the id of the color the observer needs
observer - the new listener

remove

void remove(String id,
            D observer)
Removes a listener for some type of color from this provider.

Parameters:
id - the id of the color which the observer was observing
observer - the listener to remove

set

void set(String id,
         Color color,
         D observer)
Called by a ColorManager when one color has been exchanged. Normally a provider would call DockColor.set(Color) on observer with color as argument.

Parameters:
id - the identifier of the color
color - the new color, can be null
observer - the observer which is affected