Class Font


  • public class Font
    extends java.lang.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 Font BOLD
      Standard-Schrift, fett gedruckt.
      static Font DEFAULT
      Standard-Schrift.
      static Font H1
      Schrift fuer Ueberschriften erster Ordnung.
      static Font H2
      Schrift fuer Ueberschriften zweiter Ordnung.
      static Font H3
      Schrift fuer Ueberschriften dritter Ordnung.
      static Font ITALIC
      Standard-Schrift, kursiv gedruckt.
      static Font SMALL
      Kleiner Text.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int getHeight​(Font font)
      Liefert die Hoehe der Schriftart in Pixeln.
      org.eclipse.swt.graphics.Font getSWTFont()
      Liefert die Schrift.
      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 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).