bibliothek.gui.dock.themes.color
Class MenuColor
java.lang.Object
bibliothek.gui.dock.util.AbstractUIValue<java.awt.Color,DockColor>
bibliothek.gui.dock.util.color.AbstractDockColor
bibliothek.gui.dock.themes.color.MenuColor
- All Implemented Interfaces:
- DockColor, UIValue<java.awt.Color>
- Direct Known Subclasses:
- BubbleTabMenu.BubbleMenuColor
public abstract class MenuColor
- extends AbstractDockColor
A color representing a CombinedMenu
.
- Author:
- Benjamin Sigg
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 |
KIND_MENU_COLOR
public static final Path KIND_MENU_COLOR
- the kind of color
TabColor
is
MenuColor
public MenuColor(java.lang.String id,
Path kind,
DockStation station,
CombinedMenu menu,
java.awt.Color backup)
- Creates a new TabColor.
- Parameters:
id
- the identifier of the color that is searchedkind
- the kind of DockColor
this is.station
- the station on which the color will be usedmenu
- the menu for which this color will be usedbackup
- a backup color in case that no color can be found
MenuColor
public MenuColor(java.lang.String id,
DockStation station,
CombinedMenu menu,
java.awt.Color backup)
- Creates a new TabColor.
- Parameters:
id
- the identifier of the color that is searchedstation
- the station on which the color will be usedmenu
- the menu for which this color will be usedbackup
- a backup color in case that no color can be found
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