|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.color.DefaultColorScheme
public class DefaultColorScheme
The default implementation of ColorScheme
just uses some maps
to store its colors.
Warning: this class will be replaced in version 1.1.0
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.themes.ColorScheme |
---|
COLOR_SCHEME_PARAMETER, EXTENSION_NAME |
Constructor Summary | |
---|---|
DefaultColorScheme()
|
Method Summary | |
---|---|
ColorBridgeFactory |
getBridgeFactory(Path kind)
Searches for a factory for a bridge that can be used for a specific kind of DockColor . |
Color |
getColor(String id)
Searches for a color that can be used for the identifier id . |
void |
setBridgeFactory(Path kind,
ColorBridgeFactory bridge)
Sets how to modify some kind of DockColor s. |
void |
setColor(String id,
Color color)
Sets the value of some color. |
void |
transmitAll(Priority priority,
ColorManager manager)
Transmits all values in this scheme to manager . |
boolean |
updateUI()
Called when the LookAndFeel or a color of the
LookAndFeelColors changed and this scheme
perhaps needs to update its colors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultColorScheme()
Method Detail |
---|
public boolean updateUI()
ColorScheme
LookAndFeel
or a color of the
LookAndFeelColors
changed and this scheme
perhaps needs to update its colors.
updateUI
in interface ColorScheme
true
if anything changed, false
if this scheme was not changed.public void setColor(String id, Color color)
id
- the identifier of the colorcolor
- the color or null
public void setBridgeFactory(Path kind, ColorBridgeFactory bridge)
kind
of DockColor
s.
kind
- the kind of DockColor
s the bridge works withbridge
- the factory for modifications or null
public Color getColor(String id)
ColorScheme
id
.
getColor
in interface ColorScheme
id
- an identifier of some color
null
public ColorBridgeFactory getBridgeFactory(Path kind)
ColorScheme
DockColor
.
getBridgeFactory
in interface ColorScheme
kind
- the kind of color the provider should support
null
public void transmitAll(Priority priority, ColorManager manager)
ColorScheme
manager
.
transmitAll
in interface ColorScheme
priority
- the priority to use when registering colors
and providers.manager
- the manager to fill
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |