bibliothek.gui.dock.common.intern.color
Class EclipseTabTransmitter

java.lang.Object
  extended by bibliothek.gui.dock.common.intern.color.ColorTransmitter<TabColor>
      extended by bibliothek.gui.dock.common.intern.color.TabColorTransmitter
          extended by bibliothek.gui.dock.common.intern.color.EclipseTabTransmitter
All Implemented Interfaces:
ColorProvider<TabColor>

public class EclipseTabTransmitter
extends TabColorTransmitter

A ColorTransmitter that connects TabColors with the EclipseTheme.

Author:
Benjamin Sigg

Field Summary
static ColorProviderFactory<TabColor,EclipseTabTransmitter> FACTORY
          A factory that creates EclipseTabTransmitters.
 
Constructor Summary
EclipseTabTransmitter(ColorManager manager)
           
 
Method Summary
protected  Color convert(Color source, String key)
          Changes a background color such that it can be used on a BubbleStackDockComponent
protected  Color convertFocused(Color source, String key)
          Changes a background color such that it can be used on a BubbleStackDockComponent
protected  Color convertSelected(Color source, String key)
          Changes a background color such that it can be used on a BubbleStackDockComponent
protected  boolean isFocused(String id)
          Tells whether id represents a color that is used on focused tabs.
protected  boolean isForeground(String id)
          Tells whether id represents a color that is used for the foreground.
protected  boolean isSelected(String id)
          Tells whether id represents a color that is used on selected tabs.
 
Methods inherited from class bibliothek.gui.dock.common.intern.color.TabColorTransmitter
get, get, getDockable, update
 
Methods inherited from class bibliothek.gui.dock.common.intern.color.ColorTransmitter
add, getFirstNonNull, remove, set, set, setControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY

public static final ColorProviderFactory<TabColor,EclipseTabTransmitter> FACTORY
A factory that creates EclipseTabTransmitters.

Constructor Detail

EclipseTabTransmitter

public EclipseTabTransmitter(ColorManager manager)
Method Detail

isFocused

protected boolean isFocused(String id)
Description copied from class: TabColorTransmitter
Tells whether id represents a color that is used on focused tabs.

Specified by:
isFocused in class TabColorTransmitter
Parameters:
id - some id
Returns:
true if the color is used on focused tabs

isSelected

protected boolean isSelected(String id)
Description copied from class: TabColorTransmitter
Tells whether id represents a color that is used on selected tabs.

Specified by:
isSelected in class TabColorTransmitter
Parameters:
id - some id
Returns:
true if the color is used on selected tabs

isForeground

protected boolean isForeground(String id)
Description copied from class: TabColorTransmitter
Tells whether id represents a color that is used for the foreground.

Specified by:
isForeground in class TabColorTransmitter
Parameters:
id - some id
Returns:
true if the color is used in the foreground

convert

protected Color convert(Color source,
                        String key)
Description copied from class: TabColorTransmitter
Changes a background color such that it can be used on a BubbleStackDockComponent

Specified by:
convert in class TabColorTransmitter
Parameters:
source - the original color
key - the key for which the color is needed
Returns:
the new color

convertSelected

protected Color convertSelected(Color source,
                                String key)
Description copied from class: TabColorTransmitter
Changes a background color such that it can be used on a BubbleStackDockComponent

Specified by:
convertSelected in class TabColorTransmitter
Parameters:
source - the original color
key - the key for which the color is needed, can be one of the selected or focused kind
Returns:
the new color

convertFocused

protected Color convertFocused(Color source,
                               String key)
Description copied from class: TabColorTransmitter
Changes a background color such that it can be used on a BubbleStackDockComponent

Specified by:
convertFocused in class TabColorTransmitter
Parameters:
source - the original color
key - the key for which the color is needed, can only be one of the focused kind
Returns:
the new color