bibliothek.extension.gui.dock.theme
Class BubbleTheme

java.lang.Object
  extended by bibliothek.gui.dock.themes.BasicTheme
      extended by bibliothek.extension.gui.dock.theme.BubbleTheme
All Implemented Interfaces:
DockTheme

public class BubbleTheme
extends BasicTheme

A theme using a lot of eye-candy.

Author:
Benjamin Sigg

Field Summary
static PropertyKey<ColorScheme> BUBBLE_COLOR_SCHEME
          the key to set the ColorScheme of this theme
 
Fields inherited from class bibliothek.gui.dock.themes.BasicTheme
BASIC_COLOR_SCHEME
 
Constructor Summary
BubbleTheme()
          Creates a new theme
 
Method Summary
 Color getColor(String key)
          Gets a color for a specified key.
 void install(DockController controller)
          Install this theme at controller.
 void setColor(String key, Color color)
          Stores a color which will be used in the theme.
 void uninstall(DockController controller)
          Uninstalls this theme from controller.
protected  void updateColors()
          Called when the the colors of the ColorManager have to be updated.
 
Methods inherited from class bibliothek.gui.dock.themes.BasicTheme
getColorScheme, getCombiner, getController, getDisplayFactory, getDockableSelection, getMovingImageFactory, getPaint, getTitleFactory, setColorScheme, setColorSchemeKey, setCombiner, setDisplayerFactory, setDockableSelection, setMovingImageFactory, setPaint, setStackDockComponentFactory, setTitleFactory, updateColor, updateColorProvider, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUBBLE_COLOR_SCHEME

public static final PropertyKey<ColorScheme> BUBBLE_COLOR_SCHEME
the key to set the ColorScheme of this theme

Constructor Detail

BubbleTheme

public BubbleTheme()
Creates a new theme

Method Detail

getColor

public Color getColor(String key)
Gets a color for a specified key.

Parameters:
key - the key of the color
Returns:
the color or null

setColor

public void setColor(String key,
                     Color color)
Stores a color which will be used in the theme. Note that this method takes effect the next time when this theme is installed.

Parameters:
key - the key of the color
color - the color to store

install

public void install(DockController controller)
Description copied from interface: DockTheme
Install this theme at controller. The theme may change any properties it likes.

Specified by:
install in interface DockTheme
Overrides:
install in class BasicTheme
Parameters:
controller - the controller

uninstall

public void uninstall(DockController controller)
Description copied from interface: DockTheme
Uninstalls this theme from controller. The theme has to remove all listeners it added.

Specified by:
uninstall in interface DockTheme
Overrides:
uninstall in class BasicTheme
Parameters:
controller - the controller

updateColors

protected void updateColors()
Description copied from class: BasicTheme
Called when the the colors of the ColorManager have to be updated. Subclasses should override this method and explicitly call updateColor and updateColorProvider for all Colors and UIBridges that will be used by this theme. Since ColorSchemes can create new colors and providers lazily, just reading out all colors will ensure that all colors and providers exists and are registered at the ColorManagers.

Overrides:
updateColors in class BasicTheme