bibliothek.gui.dock.themes.color
Class MenuColor

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

public abstract class MenuColor
extends AbstractDockColor

A color representing a CombinedMenu.

Author:
Benjamin Sigg

Field Summary
static Path KIND_MENU_COLOR
          the kind of color TabColor is
 
Fields inherited from interface bibliothek.gui.dock.util.color.DockColor
KIND_DOCK_COLOR
 
Constructor Summary
MenuColor(String id, DockStation station, CombinedMenu menu, Color backup)
          Creates a new TabColor.
MenuColor(String id, Path kind, DockStation station, CombinedMenu menu, Color backup)
          Creates a new TabColor.
 
Method Summary
 CombinedMenu getMenu()
          Gets the menu for which this color is used.
 DockStation getStation()
          Gets the station on which the tab 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_MENU_COLOR

public static final Path KIND_MENU_COLOR
the kind of color TabColor is

Constructor Detail

MenuColor

public MenuColor(String id,
                 Path kind,
                 DockStation station,
                 CombinedMenu menu,
                 Color backup)
Creates a new TabColor.

Parameters:
id - the identifier of the color that is searched
kind - the kind of DockColor this is.
station - the station on which the color will be used
menu - the menu for which this color will be used
backup - a backup color in case that no color can be found

MenuColor

public MenuColor(String id,
                 DockStation station,
                 CombinedMenu menu,
                 Color backup)
Creates a new TabColor.

Parameters:
id - the identifier of the color that is searched
station - the station on which the color will be used
menu - the menu for which this color will be used
backup - a backup color in case that no color can be found
Method Detail

getStation

public DockStation getStation()
Gets the station on which the tab is shown.

Returns:
the station, might be null

getMenu

public CombinedMenu getMenu()
Gets the menu for which this color is used.

Returns:
the menu