public class EclipseTabTransmitter extends TabColorTransmitter
Modifier and Type | Field and Description |
---|---|
static ColorBridgeFactory |
FACTORY
A factory that creates
EclipseTabTransmitter s. |
Constructor and Description |
---|
EclipseTabTransmitter(ColorManager manager) |
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 static final ColorBridgeFactory FACTORY
EclipseTabTransmitter
s.public EclipseTabTransmitter(ColorManager manager)
protected 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 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 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 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 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 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 kind