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

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.BasicTabTransmitter
All Implemented Interfaces:
ColorBridge, UIBridge<Color,DockColor>

public class BasicTabTransmitter
extends TabColorTransmitter

A ColorTransmitter connecting the BasicTheme with the individual color requests of common-project elements.

Author:
Benjamin Sigg

Constructor Summary
BasicTabTransmitter(ColorManager manager)
          Creates a new transmitter.
 
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
 

Constructor Detail

BasicTabTransmitter

public BasicTabTransmitter(ColorManager manager)
Creates a new transmitter.

Parameters:
manager - the source of the colors
Method Detail

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

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

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

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

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

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