Class Font

java.lang.Object
de.willuhn.jameica.gui.util.Font

public class Font extends Object
Schrift-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 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 Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 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

      public static int getHeight(Font font)
      Liefert die Hoehe der Schriftart in Pixeln.
      Parameters:
      font - die Schriftart.
      Returns:
      Hoehe in Pixel (nicht Punkt).