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

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

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 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
 

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 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

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

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

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