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, update
connect, disconnect, getFirstNonNull
add, remove, set, set, setControl
public BasicTabTransmitter(ColorManager manager)
manager
- the source of the colorsprotected Color convert(Color source, String key)
TabColorTransmitter
StackDockComponent
convert
in class TabColorTransmitter
source
- the original colorkey
- the key for which the color is neededprotected Color convertFocused(Color source, String key)
TabColorTransmitter
StackDockComponent
convertFocused
in class TabColorTransmitter
source
- 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)
TabColorTransmitter
StackDockComponent
convertSelected
in class TabColorTransmitter
source
- the original colorkey
- the key for which the color is needed, can be one of
the selected or focused kindprotected boolean isFocused(String id)
TabColorTransmitter
id
represents a color that is used on
focused tabs.isFocused
in class TabColorTransmitter
id
- some idtrue
if the color is used on focused tabsprotected boolean isForeground(String id)
TabColorTransmitter
id
represents a color that is used for
the foreground.isForeground
in class TabColorTransmitter
id
- some idtrue
if the color is used in the foregroundprotected boolean isSelected(String id)
TabColorTransmitter
id
represents a color that is used on
selected tabs.isSelected
in class TabColorTransmitter
id
- some idtrue
if the color is used on selected tabs