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

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

public class FlatTitleTransmitter
extends TitleColorTransmitter

A connection between a FlatTheme-title and the ColorMap.

Author:
Benjamin Sigg

Constructor Summary
FlatTitleTransmitter(ColorManager manager)
          Creates a new transmitter.
 
Method Summary
protected  java.awt.Color convert(java.awt.Color source, java.lang.String key)
          Changes a background color such that it can be used for key.
protected  java.awt.Color convertFocused(java.awt.Color source, java.lang.String key)
          Changes a background color such that it can be used for key.
protected  boolean isFocused(java.lang.String id)
          Tells whether id represents a color that is used on focused tabs.
protected  boolean isForeground(java.lang.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, getKeys, 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

FlatTitleTransmitter

public FlatTitleTransmitter(ColorManager manager)
Creates a new transmitter.

Parameters:
manager - the source of colors
Method Detail

convert

protected java.awt.Color convert(java.awt.Color source,
                                 java.lang.String key)
Description copied from class: TitleColorTransmitter
Changes a background color such that it can be used for key.

Specified by:
convert in class TitleColorTransmitter
Parameters:
source - the original color
key - the key for which the color is needed
Returns:
the new color, can be null

convertFocused

protected java.awt.Color convertFocused(java.awt.Color source,
                                        java.lang.String key)
Description copied from class: TitleColorTransmitter
Changes a background color such that it can be used for key.

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, can be null

isFocused

protected boolean isFocused(java.lang.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(java.lang.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