|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.color.AbstractColorScheme
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 | |
|---|---|
ColorBridge |
getBridge(Path name,
UIProperties<Color,DockColor,ColorBridge> properties)
Creates the UIBridge that handles resources of type name. |
ColorBridgeFactory |
getBridgeFactory(Path kind)
Gets the factory that creates bridges for kind. |
Color |
getColor(String id)
Gets the color that best matches the identifier id. |
Color |
getResource(String name,
UIProperties<Color,DockColor,ColorBridge> properties)
Creates the resource with name name. |
void |
setBridgeFactory(Path kind,
ColorBridgeFactory bridge)
Sets how to modify some kind of DockColors. |
void |
setColor(String id,
Color color)
Sets the value of some color. |
void |
setNullColor(String id)
Sets the value of some color explicitely to null, this is not the same as calling
setColor(String, Color): setColor removes the entry, this method keeps the entry
but sets it to null. |
protected void |
updateUI()
Called when the look and feel changed. |
| Methods inherited from class bibliothek.gui.dock.themes.color.AbstractColorScheme |
|---|
addListener, fire, hasListeners, install, listeners, managers, removeListener, uninstall |
| 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 ColorBridge getBridge(Path name,
UIProperties<Color,DockColor,ColorBridge> properties)
UISchemeUIBridge that handles resources of type name.
name - the name of the bridgeproperties - the map that will use the resource
null if this scheme does not know nameprotected void updateUI()
AbstractColorScheme
updateUI in class AbstractColorScheme
public void setBridgeFactory(Path kind,
ColorBridgeFactory bridge)
kind of DockColors.
kind - the kind of DockColors the bridge works withbridge - the factory for modifications or null
public void setColor(String id,
Color color)
id - the identifier of the colorcolor - the color or nullsetNullColor(String)public void setNullColor(String id)
null, this is not the same as calling
setColor(String, Color): setColor removes the entry, this method keeps the entry
but sets it to null.
id - the identifier of the color to set explicitely to null
public Color getResource(String name,
UIProperties<Color,DockColor,ColorBridge> properties)
UISchemename. This method may be called often
and should complete quickly.
name - the name of some resourceproperties - the map that will use the resource
null if this scheme does not know namepublic Color getColor(String id)
id.
id - some identifier
null, the color may not be stored with the exact identifier idpublic ColorBridgeFactory getBridgeFactory(Path kind)
kind.
kind - some identifier for a type
kind or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||