|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.ColorMap
public class ColorMap
A map containing several Colors. A ColorMap is
associated with exactly one CDockable. The colors in the map are
used to change the standard colors that normally used for example to paint
a title or to draw a tab. The entries of this map can be changed at any
time. Changes of any entry in this map will be forwarded instantaneously
to the element that uses the entry.
| Field Summary | |
|---|---|
static String |
COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND
a key for colors that are used on the button of the minimized-area as background |
static String |
COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND_FOCUSED
a key for colors that are used on the button of the minimized-area as background if focused |
static String |
COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND_SELECTED
a key for colors that are used on the button of the minimized-area as background if selected |
static String |
COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND
a key for colors that are used on the button of the minimized-area as foreground |
static String |
COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND_FOCUSED
a key for colors that are used on the button of the minimized-area as foreground if focused |
static String |
COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND_SELECTED
a key for colors that are used on the button of the minimized-area as foreground if selected |
static String |
COLOR_KEY_TAB_BACKGROUND
a key for colors that are used on unselected tabs as background |
static String |
COLOR_KEY_TAB_BACKGROUND_FOCUSED
a key for colors that are used on focused tabs as background |
static String |
COLOR_KEY_TAB_BACKGROUND_SELECTED
a key for colors that are used on selected, but not focused, tabs as background |
static String |
COLOR_KEY_TAB_FOREGROUND
a key for colors that are used on unselected tabs as foreground |
static String |
COLOR_KEY_TAB_FOREGROUND_FOCUSED
a key for colors that are used on focused tabs a foreground |
static String |
COLOR_KEY_TAB_FOREGROUND_SELECTED
a key for colors that are used on selected, but not focused, tabs as foreground |
static String |
COLOR_KEY_TITLE_BACKGROUND
a key for colors that are used on titles as background |
static String |
COLOR_KEY_TITLE_BACKGROUND_FOCUSED
a key for colors that are used on focused titles as background |
static String |
COLOR_KEY_TITLE_FOREGROUND
a key for colors that are used on titles as foreground |
static String |
COLOR_KEY_TITLE_FOREGROUND_FOCUSED
a key for colors that are used on focused titles as foreground |
| Constructor Summary | |
|---|---|
ColorMap(CDockable dockable)
Creates a new map. |
|
| Method Summary | |
|---|---|
void |
addListener(ColorMapListener listener)
Adds a listener to this map, the listener will be informed whenever a color of this map changes. |
Color |
getColor(String key)
Returns a color that was stored in this map. |
CDockable |
getDockable()
Gets the owner of this map. |
void |
removeListener(ColorMapListener listener)
Removes a listener from this map. |
void |
setColor(String key,
Color color)
Sets a color in this map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COLOR_KEY_TAB_BACKGROUND
public static final String COLOR_KEY_TAB_FOREGROUND
public static final String COLOR_KEY_TAB_BACKGROUND_SELECTED
public static final String COLOR_KEY_TAB_FOREGROUND_SELECTED
public static final String COLOR_KEY_TAB_BACKGROUND_FOCUSED
public static final String COLOR_KEY_TAB_FOREGROUND_FOCUSED
public static final String COLOR_KEY_TITLE_BACKGROUND
public static final String COLOR_KEY_TITLE_FOREGROUND
public static final String COLOR_KEY_TITLE_BACKGROUND_FOCUSED
public static final String COLOR_KEY_TITLE_FOREGROUND_FOCUSED
public static final String COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND
public static final String COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND
public static final String COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND_FOCUSED
public static final String COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND_FOCUSED
public static final String COLOR_KEY_MINIMIZED_BUTTON_BACKGROUND_SELECTED
public static final String COLOR_KEY_MINIMIZED_BUTTON_FOREGROUND_SELECTED
| Constructor Detail |
|---|
public ColorMap(CDockable dockable)
dockable - the owner of this map| Method Detail |
|---|
public CDockable getDockable()
public void addListener(ColorMapListener listener)
listener - the new listenerpublic void removeListener(ColorMapListener listener)
listener - the listener to removepublic Color getColor(String key)
key - the name of the color
null
public void setColor(String key,
Color color)
key - the name of the colorcolor - the new color, can be null to return to
the default color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||