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

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

public class BubbleButtonTitleTransmitter
extends MinimizedButtonColorTransmitter

A transmitter setting the colors of the flap button titles when using a BubbleTheme.

Author:
Benjamin Sigg

Constructor Summary
BubbleButtonTitleTransmitter(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 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
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

BubbleButtonTitleTransmitter

public BubbleButtonTitleTransmitter(ColorManager manager)
Creates a new transmitter

Parameters:
manager - the manager of all colors
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