bibliothek.gui.dock.themes.font
Class ButtonFont
java.lang.Object
bibliothek.gui.dock.util.AbstractUIValue<FontModifier,DockFont>
bibliothek.gui.dock.util.font.AbstractDockFont
bibliothek.gui.dock.themes.font.ButtonFont
- All Implemented Interfaces:
- DockFont, UIValue<FontModifier>
public abstract class ButtonFont
- extends AbstractDockFont
A font that is used by a button showing a DockAction
.
- 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_BUTTON_FONT
public static final Path KIND_BUTTON_FONT
- this kind describes a font that is used by a button
ButtonFont
public ButtonFont(String id,
Dockable dockable,
DockAction action,
FontModifier backup)
- Creates a new font
- Parameters:
id
- the unique id of this fontdockable
- the element which is associated with action
action
- the action for which a button is shownbackup
- the backup value used of no other value is available
ButtonFont
public ButtonFont(String id,
Dockable dockable,
DockAction action,
Path kind,
FontModifier backup)
- Creates a new font
- Parameters:
id
- the unique id of this fontdockable
- the element which is associated with action
action
- the action for which a button is shownkind
- what kind of font this isbackup
- the backup value used of no other value is available
getAction
public DockAction getAction()
- Gets the action for which this font is used.
- Returns:
- the action, may be
null
getDockable
public Dockable getDockable()
- Gets the dockable for with which
the action
is associated.
- Returns:
- the dockable, may be
null