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(java.lang.String id)
Creates a new
DockFont . |
AbstractDockFont(java.lang.String id,
FontModifier backup)
Creates a new
DockFont . |
AbstractDockFont(java.lang.String id,
Path kind)
Creates a new
DockFont . |
AbstractDockFont(java.lang.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 . |
java.awt.Font |
font(java.awt.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, value
public AbstractDockFont(java.lang.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(java.lang.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(java.lang.String id, Path kind)
DockFont
.id
- the unique identifier of the font which is observedkind
- what kind of DockFont
this ispublic AbstractDockFont(java.lang.String id)
DockFont
.id
- the unique identifier of the font which is observedprotected DockFont me()
AbstractUIValue
this
. 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>
this
public 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 null
public FontModifier font()
FontModifier
which is currently represented by this DockFont
.null
public java.awt.Font font(java.awt.Font font)
font
font
- some font to modifynull