bibliothek.gui.dock.themes.color
Class ActionColor

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<java.awt.Color,DockColor>
      extended by bibliothek.gui.dock.util.color.AbstractDockColor
          extended by bibliothek.gui.dock.themes.color.ActionColor
All Implemented Interfaces:
DockColor, UIValue<java.awt.Color>

public abstract class ActionColor
extends AbstractDockColor

A color used for a DockAction.

Author:
Benjamin Sigg

Field Summary
static Path KIND_ACTION_COLOR
          the path describing this kind of color
 
Fields inherited from interface bibliothek.gui.dock.util.color.DockColor
KIND_DOCK_COLOR
 
Constructor Summary
ActionColor(java.lang.String id, Dockable dockable, DockAction action, java.awt.Color backup)
          Creates a new DockColor.
ActionColor(java.lang.String id, Path kind, Dockable dockable, DockAction action, java.awt.Color backup)
          Creates a new DockColor.
 
Method Summary
 DockAction getAction()
          Gets the action for which this color is used.
 Dockable getDockable()
          Gets the Dockable for which the action 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, 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_ACTION_COLOR

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

Constructor Detail

ActionColor

public ActionColor(java.lang.String id,
                   Path kind,
                   Dockable dockable,
                   DockAction action,
                   java.awt.Color backup)
Creates a new DockColor.

Parameters:
id - the identifier of this color
kind - which kind of color this is
dockable - the Dockable for which the action is shown
action - the action for which the color is used
backup - a backup in case a color is missing

ActionColor

public ActionColor(java.lang.String id,
                   Dockable dockable,
                   DockAction action,
                   java.awt.Color backup)
Creates a new DockColor.

Parameters:
id - the identifier of this color
dockable - the Dockable for which the action is shown
action - the action for which the color is used
backup - a backup in case a color is missing
Method Detail

getAction

public DockAction getAction()
Gets the action for which this color is used.

Returns:
the action

getDockable

public Dockable getDockable()
Gets the Dockable for which the action is shown.

Returns:
the owner of the action