Package de.willuhn.jameica.gui.util
Class Font
- java.lang.Object
-
- de.willuhn.jameica.gui.util.Font
-
public class Font extends java.lang.ObjectSchrift-Informationen. Wir haben die SWT-Fonts hier nochmal gekapselt, damit wir sie in Properties-Dateien speichern koennen.
-
-
Field Summary
Fields Modifier and Type Field Description static FontBOLDStandard-Schrift, fett gedruckt.static FontDEFAULTStandard-Schrift.static FontH1Schrift fuer Ueberschriften erster Ordnung.static FontH2Schrift fuer Ueberschriften zweiter Ordnung.static FontH3Schrift fuer Ueberschriften dritter Ordnung.static FontITALICStandard-Schrift, kursiv gedruckt.static FontSMALLKleiner Text.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetHeight(Font font)Liefert die Hoehe der Schriftart in Pixeln.org.eclipse.swt.graphics.FontgetSWTFont()Liefert die Schrift.voidsetSWTFont(org.eclipse.swt.graphics.Font newFont)Speichert einen neuen Font-Wert.
-
-
-
Field Detail
-
H1
public static final Font H1
Schrift fuer Ueberschriften erster Ordnung.
-
H2
public static final Font H2
Schrift fuer Ueberschriften zweiter Ordnung.
-
H3
public static final Font H3
Schrift fuer Ueberschriften dritter Ordnung.
-
SMALL
public static final Font SMALL
Kleiner Text.
-
DEFAULT
public static final Font DEFAULT
Standard-Schrift.
-
BOLD
public static final Font BOLD
Standard-Schrift, fett gedruckt.
-
ITALIC
public static final Font ITALIC
Standard-Schrift, kursiv gedruckt.
-
-
Method Detail
-
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
public static int getHeight(Font font)
Liefert die Hoehe der Schriftart in Pixeln.- Parameters:
font- die Schriftart.- Returns:
- Hoehe in Pixel (nicht Punkt).
-
-