bibliothek.gui.dock.themes.color
Class StationColor

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.StationColor
All Implemented Interfaces:
DockColor, UIValue<Color>

public abstract class StationColor
extends AbstractDockColor

A color used for painting a DockStation.

Author:
Benjamin Sigg

Field Summary
static Path KIND_STATION_COLOR
          the path describing this kind of color
 
Fields inherited from interface bibliothek.gui.dock.util.color.DockColor
KIND_DOCK_COLOR
 
Constructor Summary
StationColor(String id, DockStation station, Color backup)
          Creates a new DockColor.
StationColor(String id, Path kind, DockStation station, Color backup)
          Creates a new DockColor.
 
Method Summary
 DockStation getStation()
          Gets the DockStation for which this color is used.
 
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, 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
 

Field Detail

KIND_STATION_COLOR

public static final Path KIND_STATION_COLOR
the path describing this kind of color

Constructor Detail

StationColor

public StationColor(String id,
                    Path kind,
                    DockStation station,
                    Color backup)
Creates a new DockColor.

Parameters:
id - the identifier of this color
kind - which kind of color this is
station - the station for which this color will be used
backup - a backup in case a color is missing

StationColor

public StationColor(String id,
                    DockStation station,
                    Color backup)
Creates a new DockColor.

Parameters:
id - the identifier of this color
station - the station for which this color will be used
backup - a backup in case a color is missing
Method Detail

getStation

public DockStation getStation()
Gets the DockStation for which this color is used.

Returns:
the station, not null