|
||||||||||
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.
Nested Class Summary | |
---|---|
private class |
BubbleTheme.ButtonGenerator
Generator to create views for button-actions . |
private class |
BubbleTheme.CheckGenerator
Generator to create views for check-actions . |
private class |
BubbleTheme.DropDownGenerator
Generator to create views for dropdown-actions . |
private class |
BubbleTheme.Listener
A listener to the Controller |
private class |
BubbleTheme.MenuGenerator
Generator to create views for menus . |
private class |
BubbleTheme.RadioGenerator
Generator to create views for radio-actions . |
private class |
BubbleTheme.SeparatorGenerator
Generator to create views for separators . |
Field Summary | |
---|---|
private java.util.Map<java.lang.String,java.awt.Color> |
colors
The colors used by this theme |
private BubbleTheme.Listener |
listener
A listener to the DockController |
Constructor Summary | |
---|---|
BubbleTheme()
Creates a new theme |
Method Summary | |
---|---|
private java.awt.Color |
delta(java.awt.Color color,
float dh,
float ds,
float db)
Moves the hsb-representation of color a little. |
void |
deriveColors(java.awt.Color active,
java.awt.Color inactive,
java.awt.Color text,
java.awt.Color button,
java.awt.Color buttonSelected,
java.awt.Color disabled)
Derives all colors needed in this theme. |
java.awt.Color |
getColor(java.lang.String key)
Gets a color for a specified key. |
void |
install(DockController controller)
Install this theme at controller . |
protected java.util.Map<java.lang.String,javax.swing.Icon> |
loadIcons()
Reads a set of icons which will replace the ordinary icons. |
void |
setColor(java.lang.String key,
java.awt.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, setTitleFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<java.lang.String,java.awt.Color> colors
private BubbleTheme.Listener listener
DockController
Constructor Detail |
---|
public BubbleTheme()
Method Detail |
---|
public void deriveColors(java.awt.Color active, java.awt.Color inactive, java.awt.Color text, java.awt.Color button, java.awt.Color buttonSelected, java.awt.Color disabled)
active
- the base color for active titlesinactive
- the base color for inactive titlestext
- the base color for textbutton
- the base color for buttonsbuttonSelected
- the base color for selected buttonsdisabled
- the base color for disabled elementssprivate java.awt.Color delta(java.awt.Color color, float dh, float ds, float db)
color
a little.
color
- the color to changedh
- the delta in hueds
- the delta in saturisationdb
- the delta in brightness
public java.awt.Color getColor(java.lang.String key)
key
- the key of the color
null
public void setColor(java.lang.String key, java.awt.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 controllerprotected java.util.Map<java.lang.String,javax.swing.Icon> loadIcons()
public 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 controller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |