bibliothek.gui.dock.themes.color
Class StationPaintColor

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

public abstract class StationPaintColor
extends AbstractDockColor

A color used by a StationPaint.

Author:
Benjamin Sigg

Field Summary
static Path KIND_STATION_PAINT_COLOR
          the kind of color StationPaintColor is
 
Fields inherited from interface bibliothek.gui.dock.util.color.DockColor
KIND_DOCK_COLOR
 
Constructor Summary
StationPaintColor(String id, Path kind, StationPaint paint, Color backup)
          Creates a new DockColor
StationPaintColor(String id, StationPaint paint, Color backup)
          Creates a new DockColor
 
Method Summary
 StationPaint getPaint()
          Gets the StationPaint that uses this color.
 
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_PAINT_COLOR

public static final Path KIND_STATION_PAINT_COLOR
the kind of color StationPaintColor is

Constructor Detail

StationPaintColor

public StationPaintColor(String id,
                         Path kind,
                         StationPaint paint,
                         Color backup)
Creates a new DockColor

Parameters:
id - the identifier of this color
kind - what kind of color this is
paint - the StationPaint that uses this color
backup - a backup used when no color was found

StationPaintColor

public StationPaintColor(String id,
                         StationPaint paint,
                         Color backup)
Creates a new DockColor

Parameters:
id - the identifier of this color
paint - the StationPaint that uses this color
backup - a backup used when no color was found
Method Detail

getPaint

public StationPaint getPaint()
Gets the StationPaint that uses this color.

Returns:
the paint that uses this