bibliothek.gui.dock.themes.font
Class ButtonFont

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractUIValue<FontModifier,DockFont>
      extended by bibliothek.gui.dock.util.font.AbstractDockFont
          extended by 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

Field Summary
static Path KIND_BUTTON_FONT
          this kind describes a font that is used by a button
 
Fields inherited from interface bibliothek.gui.dock.util.font.DockFont
ID_BUTTON, ID_FLAP_BUTTON_ACTIVE, ID_FLAP_BUTTON_INACTIVE, ID_FLAP_BUTTON_SELECTED, ID_TAB_FOCUSED, ID_TAB_SELECTED, ID_TAB_UNSELECTED, ID_TITLE_ACTIVE, ID_TITLE_INACTIVE, KIND_DOCK_FONT
 
Constructor Summary
ButtonFont(String id, Dockable dockable, DockAction action, FontModifier backup)
          Creates a new font
ButtonFont(String id, Dockable dockable, DockAction action, Path kind, FontModifier backup)
          Creates a new font
 
Method Summary
 DockAction getAction()
          Gets the action for which this font is used.
 Dockable getDockable()
          Gets the dockable for with which the action is associated.
 
Methods inherited from class bibliothek.gui.dock.util.font.AbstractDockFont
connect, font, font, 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_BUTTON_FONT

public static final Path KIND_BUTTON_FONT
this kind describes a font that is used by a button

Constructor Detail

ButtonFont

public ButtonFont(String id,
                  Dockable dockable,
                  DockAction action,
                  FontModifier backup)
Creates a new font

Parameters:
id - the unique id of this font
dockable - the element which is associated with action
action - the action for which a button is shown
backup - 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 font
dockable - the element which is associated with action
action - the action for which a button is shown
kind - what kind of font this is
backup - the backup value used of no other value is available
Method Detail

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