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

java.lang.Object
  extended by bibliothek.gui.dock.common.intern.color.ColorTransmitter<TitleColor>
      extended by bibliothek.gui.dock.common.intern.color.TitleColorTransmitter
          extended by bibliothek.gui.dock.common.intern.color.BasicTitleTransmitter
All Implemented Interfaces:
ColorBridge, UIBridge<Color,DockColor>

public class BasicTitleTransmitter
extends TitleColorTransmitter

A connection between the ColorMaps and the BasicDockTitles.

Author:
Benjamin Sigg

Constructor Summary
BasicTitleTransmitter(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  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.
 
Methods inherited from class bibliothek.gui.dock.common.intern.color.TitleColorTransmitter
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

BasicTitleTransmitter

public BasicTitleTransmitter(ColorManager manager)
Creates a new transmitter.

Parameters:
manager - the source of colors
Method Detail

convert

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

Specified by:
convert in class TitleColorTransmitter
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: TitleColorTransmitter
Changes a background color such that it can be used on a BubbleStackDockComponent

Specified by:
convertFocused in class TitleColorTransmitter
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

isFocused

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

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

isForeground

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

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