bibliothek.gui.dock.util.color
Class AbstractDockColor

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<Color,DockColor>
      extended by bibliothek.gui.dock.util.color.AbstractDockColor
All Implemented Interfaces:
DockColor, UIValue<Color>
Direct Known Subclasses:
ActionColor, DefaultScreenDockWindowBorder.BorderColor, DisplayerColor, DockableSelectionColor, MenuColor, StationColor, StationPaintColor, TabColor, TitleColor

public abstract class AbstractDockColor
extends AbstractUIValue<Color,DockColor>
implements DockColor

A DockColor that contains more than one Color:


This class also has methods to add or remove itself from a ColorManager.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from interface bibliothek.gui.dock.util.color.DockColor
KIND_DOCK_COLOR
 
Constructor Summary
AbstractDockColor(String id)
          Creates a new DockColor.
AbstractDockColor(String id, Path kind)
          Creates a new DockColor.
AbstractDockColor(String id, Path kind, Color backup)
          Creates a new DockColor.
 
Method Summary
 Color color()
          Gets the first non-null value of the list override, value, backup.
 void connect(DockController controller)
          This method just calls AbstractUIValue.setManager(UIProperties) with the controllers ColorManager.
protected  DockColor me()
          Returns this.
 
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
 

Constructor Detail

AbstractDockColor

public AbstractDockColor(String id)
Creates a new DockColor.

Parameters:
id - the id of the color for which this should listen

AbstractDockColor

public AbstractDockColor(String id,
                         Path kind)
Creates a new DockColor.

Parameters:
id - the id of the color for which this should listen
kind - the kind of DockColor this is

AbstractDockColor

public AbstractDockColor(String id,
                         Path kind,
                         Color backup)
Creates a new DockColor.

Parameters:
id - the id of the color for which this should listen
kind - the kind of DockColor this is, can be null
backup - a backup color, can be null
Method Detail

me

protected DockColor me()
Description copied from class: AbstractUIValue
Returns this. This method can only be implemented when the generic boundaries are met, so this methods ensures that this is really an U, or abstract.

Specified by:
me in class AbstractUIValue<Color,DockColor>
Returns:
this

connect

public void connect(DockController controller)
This method just calls AbstractUIValue.setManager(UIProperties) with the controllers ColorManager.

Parameters:
controller - the owner of this DockColor or null

color

public Color color()
Gets the first non-null value of the list override, value, backup.

Returns:
a color or null