Enum HSLFFontInfoPredefined

java.lang.Object
java.lang.Enum<HSLFFontInfoPredefined>
org.apache.poi.hslf.usermodel.HSLFFontInfoPredefined
All Implemented Interfaces:
Serializable, Comparable<HSLFFontInfoPredefined>, java.lang.constant.Constable, FontInfo

public enum HSLFFontInfoPredefined extends Enum<HSLFFontInfoPredefined> implements FontInfo
Predefined fonts
Since:
POI 3.17-beta2
  • Enum Constant Details

  • Method Details

    • values

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

      public static HSLFFontInfoPredefined valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getTypeface

      public String getTypeface()
      Specified by:
      getTypeface in interface FontInfo
      Returns:
      the full name of the font, i.e. font family + type face
    • getCharset

      public FontCharset getCharset()
      Specified by:
      getCharset in interface FontInfo
      Returns:
      the font charset
    • getFamily

      public FontFamily getFamily()
      Specified by:
      getFamily in interface FontInfo
      Returns:
      the family class
    • getPitch

      public FontPitch getPitch()
      Specified by:
      getPitch in interface FontInfo
      Returns:
      the font pitch or null if unsupported