|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.themes.BasicTheme
bibliothek.extension.gui.dock.theme.BubbleTheme
public class BubbleTheme
A theme using a lot of eye-candy.
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(DockController[] controllers)
Called when the the colors of the ColorManager have to be updated. |
Methods inherited from class bibliothek.gui.dock.themes.BasicTheme |
---|
getColorScheme, getCombiner, getControllers, getDisplayFactory, getDockableSelection, getMovingImageFactory, getPaint, getTitleFactory, setColorScheme, 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 |
Constructor Detail |
---|
public BubbleTheme()
Method Detail |
---|
public Color getColor(String key)
key
- the key of the color
null
public void setColor(String key, Color color)
key
- the key of the colorcolor
- the color to storepublic void install(DockController controller)
DockTheme
controller
. The theme
may change any properties it likes.
install
in interface DockTheme
install
in class BasicTheme
controller
- the controllerpublic void uninstall(DockController controller)
DockTheme
controller
. The theme
has to remove all listeners it added.
uninstall
in interface DockTheme
uninstall
in class BasicTheme
controller
- the controllerprotected void updateColors(DockController[] controllers)
BasicTheme
ColorManager
have to be updated.
Subclasses should override this method and explicitly call
updateColor
and
updateColorProvider
for all Color
s and ColorProvider
s that will be used by
this theme. Since ColorScheme
s 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 ColorManager
s.
updateColors
in class BasicTheme
controllers
- the set of controllers whose colors must be updated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |