public abstract class AbstractDockFont extends AbstractUIValue<FontModifier,DockFont> implements DockFont
DockFont that can connect itself to
a DockController.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 and Description |
|---|
AbstractDockFont(String id)
Creates a new
DockFont. |
AbstractDockFont(String id,
FontModifier backup)
Creates a new
DockFont. |
AbstractDockFont(String id,
Path kind)
Creates a new
DockFont. |
AbstractDockFont(String id,
Path kind,
FontModifier backup)
Creates a new
DockFont. |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(DockController controller)
Makes sure that this
DockFont reads its values from the
FontManager of controller.Use setManager(null) to disconnect. |
FontModifier |
font()
Gets the
FontModifier which is currently represented by this DockFont. |
Font |
font(Font font)
Gets a modified version of
font |
protected DockFont |
me()
Returns
this. |
changed, getBackup, getId, getKind, getValue, set, setBackup, setId, setKind, setManager, setValue, setValue, update, valuepublic AbstractDockFont(String id, FontModifier backup)
DockFont.id - the unique identifier of the font which is observedbackup - the backup value used when no font is setpublic AbstractDockFont(String id, Path kind, FontModifier backup)
DockFont.id - the unique identifier of the font which is observedkind - what kind of DockFont this isbackup - the backup value used when no font is setpublic AbstractDockFont(String id, Path kind)
DockFont.id - the unique identifier of the font which is observedkind - what kind of DockFont this isprotected DockFont me()
AbstractUIValuethis. This method can only be implemented when
the generic boundaries are met, so this methods ensures that this
is really an U, or abstract.me in class AbstractUIValue<FontModifier,DockFont>thispublic void connect(DockController controller)
DockFont reads its values from the
FontManager of controller.setManager(null) to disconnect.controller - the new source for fonts, can be nullpublic FontModifier font()
FontModifier which is currently represented by this DockFont.nullCopyright © 2017 Docking Frames. All rights reserved.