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

Constructor Summary
BubbleTheme()
          Creates a new theme
 
Method Summary
 void deriveColors(Color active, Color inactive, Color text, Color button, Color buttonSelected, Color disabled)
          Derives all colors needed in this theme.
 Color getColor(String key)
          Gets a color for a specified key.
 void install(DockController controller)
          Install this theme at controller.
protected  Map<String,Icon> loadIcons()
          Reads a set of icons which will replace the ordinary icons.
 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.
 
Methods inherited from class bibliothek.gui.dock.themes.BasicTheme
getCombiner, getDisplayFactory, getMovingTitleGetter, getPaint, getTitleFactory, setCombiner, setDisplayerFactory, setMovingTitleGetter, setPaint, setStackDockComponentFactory, setTitleFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BubbleTheme

public BubbleTheme()
Creates a new theme

Method Detail

deriveColors

public void deriveColors(Color active,
                         Color inactive,
                         Color text,
                         Color button,
                         Color buttonSelected,
                         Color disabled)
Derives all colors needed in this theme.

Parameters:
active - the base color for active titles
inactive - the base color for inactive titles
text - the base color for text
button - the base color for buttons
buttonSelected - the base color for selected buttons
disabled - the base color for disabled elements

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.

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

loadIcons

protected Map<String,Icon> loadIcons()
Reads a set of icons which will replace the ordinary icons.

Returns:
the new set of icons

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