bibliothek.gui.dock.themes.color
Class TabColor

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<Color,DockColor>
      extended by bibliothek.gui.dock.util.color.AbstractDockColor
          extended by 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

Field Summary
static Path KIND_TAB_COLOR
          the kind of color TabColor is
 
Fields inherited from interface bibliothek.gui.dock.util.color.DockColor
KIND_DOCK_COLOR
 
Constructor Summary
TabColor(String id, DockStation station, Dockable dockable, Color backup)
          Creates a new TabColor.
TabColor(String id, Path kind, DockStation station, Dockable dockable, Color backup)
          Creates a new TabColor.
 
Method Summary
 Dockable getDockable()
          Gets the element for which the tab is shown.
 DockStation getStation()
          Gets the station on which the tab is shown.
 
Methods inherited from class bibliothek.gui.dock.util.color.AbstractDockColor
color, connect, me
 
Methods inherited from class bibliothek.gui.dock.util.AbstractUIValue
changed, getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue, 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
 

Field Detail

KIND_TAB_COLOR

public static final Path KIND_TAB_COLOR
the kind of color TabColor is

Constructor Detail

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 searched
kind - the kind of DockColor this is.
station - the station on which the color will be used
dockable - the Dockable for whose tab this color is used
backup - 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 searched
station - the station on which the color will be used
dockable - the Dockable for whose tab this color is used
backup - a backup color in case that no color can be found
Method Detail

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