public class BubbleTabTransmitter extends TabColorTransmitter
TabColor
s related to a BubbleTheme
.Modifier and Type | Field and Description |
---|---|
static ColorBridgeFactory |
FACTORY
A factory that creates
BubbleTabTransmitter s. |
Constructor and Description |
---|
BubbleTabTransmitter(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 static final ColorBridgeFactory FACTORY
BubbleTabTransmitter
s.public BubbleTabTransmitter(ColorManager manager)
manager
- the source of all colorsprotected 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 tabsprotected 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 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 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 kind