bibliothek.gui.dock.themes.color
Class TabColor

java.lang.Object
  extended by bibliothek.gui.dock.util.color.AbstractDockColor
      extended by bibliothek.gui.dock.themes.color.TabColor
All Implemented Interfaces:
DockColor
Direct Known Subclasses:
BubbleStackDockComponent.BubbleTabColor

public abstract class TabColor
extends AbstractDockColor

Color related to a single Dockable on a StackDockStation.

Author:
Benjamin Sigg

Constructor Summary
TabColor(String id, Class<? extends DockColor> kind, StackDockStation station, Dockable dockable, Color backup)
          Creates a new TabColor.
 
Method Summary
 Dockable getDockable()
          Gets the element for which the tab is shown.
 StackDockStation getStation()
          Gets the station on which the tab is shown.
 
Methods inherited from class bibliothek.gui.dock.util.color.AbstractDockColor
changed, color, connect, getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabColor

public TabColor(String id,
                Class<? extends DockColor> kind,
                StackDockStation 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
Method Detail

getStation

public StackDockStation 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