bibliothek.gui.dock.themes.color
Class TabColor
java.lang.Object
bibliothek.gui.dock.util.AbstractUIValue<Color,DockColor>
bibliothek.gui.dock.util.color.AbstractDockColor
bibliothek.gui.dock.themes.color.TabColor
- All Implemented Interfaces:
- DockColor, UIValue<Color>
- Direct Known Subclasses:
- BubbleTab.BubbleTabColor
public abstract class TabColor
- extends AbstractDockColor
Color related to a single Dockable
that is in a tab for example
on a StackDockStation
.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.util.AbstractUIValue |
changed, getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue, setValue, update, value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.util.UIValue |
set |
KIND_TAB_COLOR
public static final Path KIND_TAB_COLOR
- the kind of color
TabColor
is
TabColor
public TabColor(String id,
Path kind,
DockStation station,
Dockable dockable,
Color backup)
- Creates a new TabColor.
- Parameters:
id
- the identifier of the color that is searchedkind
- the kind of DockColor
this is.station
- the station on which the color will be useddockable
- the Dockable
for whose tab this color is usedbackup
- a backup color in case that no color can be found
TabColor
public TabColor(String id,
DockStation station,
Dockable dockable,
Color backup)
- Creates a new TabColor.
- Parameters:
id
- the identifier of the color that is searchedstation
- the station on which the color will be useddockable
- the Dockable
for whose tab this color is usedbackup
- a backup color in case that no color can be found
getStation
public DockStation getStation()
- Gets the station on which the tab is shown.
- Returns:
- the station, might be
null
getDockable
public Dockable getDockable()
- Gets the element for which the tab is shown.
- Returns:
- the element