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:
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 AbstractDockColor> 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
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
 

Constructor Detail

TabColor

public TabColor(String id,
                Class<? extends AbstractDockColor> 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