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 java.awt.Color |
convert(java.awt.Color source,
java.lang.String key)
Changes a background color such that it can be used on a
StackDockComponent |
protected java.awt.Color |
convertFocused(java.awt.Color source,
java.lang.String key)
Changes a background color such that it can be used on a
StackDockComponent |
protected java.awt.Color |
convertSelected(java.awt.Color source,
java.lang.String key)
Changes a background color such that it can be used on a
StackDockComponent |
protected boolean |
isFocused(java.lang.String id)
Tells whether
id represents a color that is used on
focused tabs. |
protected boolean |
isForeground(java.lang.String id)
Tells whether
id represents a color that is used for
the foreground. |
protected boolean |
isSelected(java.lang.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 java.awt.Color convert(java.awt.Color source, java.lang.String key)
TabColorTransmitter
StackDockComponent
convert
in class TabColorTransmitter
source
- the original colorkey
- the key for which the color is neededprotected java.awt.Color convertFocused(java.awt.Color source, java.lang.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 java.awt.Color convertSelected(java.awt.Color source, java.lang.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(java.lang.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(java.lang.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(java.lang.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