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

java.lang.Object
  extended by bibliothek.gui.dock.common.intern.ui.UITransmitter<Color,DockColor>
      extended by bibliothek.gui.dock.common.intern.color.ColorTransmitter
          extended by bibliothek.gui.dock.common.intern.color.TabColorTransmitter
              extended by bibliothek.gui.dock.common.intern.color.EclipseTabTransmitter
All Implemented Interfaces:
ColorBridge, UIBridge<Color,DockColor>

public class EclipseTabTransmitter
extends TabColorTransmitter

A ColorTransmitter that connects TabColors with the EclipseTheme.

Author:
Benjamin Sigg

Field Summary
static ColorBridgeFactory 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 StackDockComponent
protected  Color convertFocused(Color source, String key)
          Changes a background color such that it can be used on a StackDockComponent
protected  Color convertSelected(Color source, String key)
          Changes a background color such that it can be used on a StackDockComponent
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
connect, disconnect, getFirstNonNull
 
Methods inherited from class bibliothek.gui.dock.common.intern.ui.UITransmitter
add, remove, set, set, setControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.util.UIBridge
add, remove, set
 

Field Detail

FACTORY

public static final ColorBridgeFactory 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 StackDockComponent

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 StackDockComponent

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 StackDockComponent

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