bibliothek.gui.dock.themes.font
Class TabFont

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.TabFont
All Implemented Interfaces:
DockFont, UIValue<FontModifier>
Direct Known Subclasses:
BubbleTab.BubbleTabFont

public abstract class TabFont
extends AbstractDockFont

A font used for a tab for example on a StackDockStation.

Author:
Benjamin Sigg

Field Summary
static Path KIND_TAB_FONT
          the identifier of this kind of font
 
Fields inherited from interface bibliothek.gui.dock.util.font.DockFont
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
TabFont(String id, DockStation station, Dockable dockable)
          Creates a new font
TabFont(String id, DockStation station, Dockable dockable, FontModifier backup)
          Creates a new font
TabFont(String id, Path kind, DockStation station, Dockable dockable)
          Creates a new font
TabFont(String id, Path kind, DockStation station, Dockable dockable, FontModifier backup)
          Creates a new font
 
Method Summary
 Dockable getDockable()
          Gets the element for which this font is used.
 DockStation getStation()
          Gets the station for which this font is used.
 
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, 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_TAB_FONT

public static final Path KIND_TAB_FONT
the identifier of this kind of font

Constructor Detail

TabFont

public TabFont(String id,
               DockStation station,
               Dockable dockable,
               FontModifier backup)
Creates a new font

Parameters:
id - the unique identifier of this font, should match some identifier used in a FontManager.
station - the station for which this font is used
dockable - the element which is associated with this font
backup - default value for this font

TabFont

public TabFont(String id,
               Path kind,
               DockStation station,
               Dockable dockable,
               FontModifier backup)
Creates a new font

Parameters:
id - the unique identifier of this font, should match some identifier used in a FontManager.
kind - the kind of font this represents, should be a child of KIND_TAB_FONT.
station - the station for which this font is used
dockable - the element which is associated with this font
backup - default value for this font

TabFont

public TabFont(String id,
               Path kind,
               DockStation station,
               Dockable dockable)
Creates a new font

Parameters:
id - the unique identifier of this font, should match some identifier used in a FontManager.
kind - the kind of font this represents, should be a child of KIND_TAB_FONT.
station - the station for which this font is used
dockable - the element which is associated with this font

TabFont

public TabFont(String id,
               DockStation station,
               Dockable dockable)
Creates a new font

Parameters:
id - the unique identifier of this font, should match some identifier used in a FontManager.
station - the station for which this font is used
dockable - the element which is associated with this font
Method Detail

getStation

public DockStation getStation()
Gets the station for which this font is used.

Returns:
the station

getDockable

public Dockable getDockable()
Gets the element for which this font is used.

Returns:
the element