Enum Class Font

java.lang.Object
java.lang.Enum<Font>
ch.nolix.systemapi.gui.font.Font
All Implemented Interfaces:
Serializable, Comparable<Font>, Constable

public enum Font extends Enum<Font>
Author:
Silvan Wyss
  • Enum Constant Details

    • ARIAL

      public static final Font ARIAL
    • ARIAL_BLACK

      public static final Font ARIAL_BLACK
    • COMIC_SANS_MS

      public static final Font COMIC_SANS_MS
    • IMPACT

      public static final Font IMPACT
    • LUCIDA_CONSOLE

      public static final Font LUCIDA_CONSOLE
    • PAPYRUS

      public static final Font PAPYRUS
    • TAHOMA

      public static final Font TAHOMA
    • VERDANA

      public static final Font VERDANA
  • Method Details

    • values

      public static Font[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Font valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromSpecification

      public static Font fromSpecification(INode<?> specification)
      Parameters:
      specification -
      Returns:
      a new Font from the given specification.
      Throws:
      RuntimeException - if the given specification does not represent a Font.
    • getCode

      public String getCode()
      Returns:
      the code of the current Font.