Package de.willuhn.jameica.gui.util
Class Font
java.lang.Object
de.willuhn.jameica.gui.util.Font
Schrift-Informationen.
Wir haben die SWT-Fonts hier nochmal gekapselt, damit wir sie in Properties-Dateien
speichern koennen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Font
Standard-Schrift, fett gedruckt.static final Font
Standard-Schrift.static final Font
Schrift fuer Ueberschriften erster Ordnung.static final Font
Schrift fuer Ueberschriften zweiter Ordnung.static final Font
Schrift fuer Ueberschriften dritter Ordnung.static final Font
Standard-Schrift, kursiv gedruckt.static final Font
Kleiner Text. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Liefert die Hoehe der Schriftart in Pixeln.final org.eclipse.swt.graphics.Font
Liefert die Schrift.final void
setSWTFont
(org.eclipse.swt.graphics.Font newFont) Speichert einen neuen Font-Wert.
-
Field Details
-
H1
Schrift fuer Ueberschriften erster Ordnung. -
H2
Schrift fuer Ueberschriften zweiter Ordnung. -
H3
Schrift fuer Ueberschriften dritter Ordnung. -
SMALL
Kleiner Text. -
DEFAULT
Standard-Schrift. -
BOLD
Standard-Schrift, fett gedruckt. -
ITALIC
Standard-Schrift, kursiv gedruckt.
-
-
Method Details
-
getSWTFont
public final org.eclipse.swt.graphics.Font getSWTFont()Liefert die Schrift.- Returns:
- die zugehoerige SWT-Schrift.
-
setSWTFont
public final void setSWTFont(org.eclipse.swt.graphics.Font newFont) Speichert einen neuen Font-Wert.- Parameters:
newFont
- die neue Schrift.
-
getHeight
Liefert die Hoehe der Schriftart in Pixeln.- Parameters:
font
- die Schriftart.- Returns:
- Hoehe in Pixel (nicht Punkt).
-