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

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.MinimizedButtonColorTransmitter
              extended by bibliothek.gui.dock.common.intern.color.BasicButtonTitleTransmitter
All Implemented Interfaces:
ColorBridge, UIBridge<Color,DockColor>

public class BasicButtonTitleTransmitter
extends MinimizedButtonColorTransmitter

A transmitter to BasicButtonDockTitle.

Author:
Benjamin Sigg

Constructor Summary
BasicButtonTitleTransmitter(ColorManager manager)
           
 
Method Summary
protected  Color convert(Color source, String key)
          Changes a background color such that it can be used for key.
protected  Color convertFocused(Color source, String key)
          Changes a background color such that it can be used for key.
protected  Color convertSelected(Color source, String key)
          Changes a background color such that is can be used for key.
protected  boolean isFocused(String id)
          Tells whether id represents a color that is used on focused titles.
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 a selected title.
 
Methods inherited from class bibliothek.gui.dock.common.intern.color.MinimizedButtonColorTransmitter
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

BasicButtonTitleTransmitter

public BasicButtonTitleTransmitter(ColorManager manager)
Method Detail

convert

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

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

convertFocused

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

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

convertSelected

protected Color convertSelected(Color source,
                                String key)
Description copied from class: MinimizedButtonColorTransmitter
Changes a background color such that is can be used for key.

Specified by:
convertSelected in class MinimizedButtonColorTransmitter
Parameters:
source - the original color
key - the key for which the color is needed, can only be one of the selected kind
Returns:
the new color, can be null

isFocused

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

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

isForeground

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

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

isSelected

protected boolean isSelected(String id)
Description copied from class: MinimizedButtonColorTransmitter
Tells whether id represents a color that is used on a selected title.

Specified by:
isSelected in class MinimizedButtonColorTransmitter
Parameters:
id - some id
Returns:
true if the color is used on a selected button