public class BasicTabTransmitter extends TabColorTransmitter
ColorTransmitter connecting the BasicTheme with the
individual color requests of common-project elements.| Constructor and Description |
|---|
BasicTabTransmitter(ColorManager manager)
Creates a new transmitter.
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
convert(Color source,
String key)
Changes a background color such that it can be used on a
StackDockComponent |
protected Color |
convertFocused(Color source,
String key)
Changes a background color such that it can be used on a
StackDockComponent |
protected Color |
convertSelected(Color source,
String key)
Changes a background color such that it can be used on a
StackDockComponent |
protected boolean |
isFocused(String id)
Tells whether
id represents a color that is used on
focused tabs. |
protected boolean |
isForeground(String id)
Tells whether
id represents a color that is used for
the foreground. |
protected boolean |
isSelected(String id)
Tells whether
id represents a color that is used on
selected tabs. |
get, get, getDockable, updateconnect, disconnect, getFirstNonNulladd, remove, set, set, setControlpublic BasicTabTransmitter(ColorManager manager)
manager - the source of the colorsprotected Color convert(Color source, String key)
TabColorTransmitterStackDockComponentconvert in class TabColorTransmittersource - the original colorkey - the key for which the color is neededprotected Color convertFocused(Color source, String key)
TabColorTransmitterStackDockComponentconvertFocused in class TabColorTransmittersource - the original colorkey - the key for which the color is needed, can only be one
of the focused kindprotected Color convertSelected(Color source, String key)
TabColorTransmitterStackDockComponentconvertSelected in class TabColorTransmittersource - the original colorkey - the key for which the color is needed, can be one of
the selected or focused kindprotected boolean isFocused(String id)
TabColorTransmitterid represents a color that is used on
focused tabs.isFocused in class TabColorTransmitterid - some idtrue if the color is used on focused tabsprotected boolean isForeground(String id)
TabColorTransmitterid represents a color that is used for
the foreground.isForeground in class TabColorTransmitterid - some idtrue if the color is used in the foregroundprotected boolean isSelected(String id)
TabColorTransmitterid represents a color that is used on
selected tabs.isSelected in class TabColorTransmitterid - some idtrue if the color is used on selected tabsCopyright © 2018. All rights reserved.