bibliothek.gui.dock.themes.color
Class ActionColor

java.lang.Object
  extended by bibliothek.gui.dock.util.color.AbstractDockColor
      extended by bibliothek.gui.dock.themes.color.ActionColor
All Implemented Interfaces:
DockColor

public abstract class ActionColor
extends AbstractDockColor

A color used for a DockAction.

Author:
Benjamin Sigg

Constructor Summary
ActionColor(String id, Class<? extends DockColor> kind, Dockable dockable, DockAction action, 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
changed, color, connect, getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionColor

public ActionColor(String id,
                   Class<? extends DockColor> kind,
                   Dockable dockable,
                   DockAction action,
                   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
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