Package org.apache.pdfbox.pdmodel.font
Enum Standard14Fonts.FontName
- java.lang.Object
-
- java.lang.Enum<Standard14Fonts.FontName>
-
- org.apache.pdfbox.pdmodel.font.Standard14Fonts.FontName
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Standard14Fonts.FontName>
- Enclosing class:
- Standard14Fonts
public static enum Standard14Fonts.FontName extends java.lang.Enum<Standard14Fonts.FontName>
Enum for the names of the 14 standard fonts.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COURIERCOURIER_BOLDCOURIER_BOLD_OBLIQUECOURIER_OBLIQUEHELVETICAHELVETICA_BOLDHELVETICA_BOLD_OBLIQUEHELVETICA_OBLIQUESYMBOLTIMES_BOLDTIMES_BOLD_ITALICTIMES_ITALICTIMES_ROMANZAPF_DINGBATS
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description privateFontName(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.StringtoString()static Standard14Fonts.FontNamevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Standard14Fonts.FontName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TIMES_ROMAN
public static final Standard14Fonts.FontName TIMES_ROMAN
-
TIMES_BOLD
public static final Standard14Fonts.FontName TIMES_BOLD
-
TIMES_ITALIC
public static final Standard14Fonts.FontName TIMES_ITALIC
-
TIMES_BOLD_ITALIC
public static final Standard14Fonts.FontName TIMES_BOLD_ITALIC
-
HELVETICA
public static final Standard14Fonts.FontName HELVETICA
-
HELVETICA_BOLD
public static final Standard14Fonts.FontName HELVETICA_BOLD
-
HELVETICA_OBLIQUE
public static final Standard14Fonts.FontName HELVETICA_OBLIQUE
-
HELVETICA_BOLD_OBLIQUE
public static final Standard14Fonts.FontName HELVETICA_BOLD_OBLIQUE
-
COURIER
public static final Standard14Fonts.FontName COURIER
-
COURIER_BOLD
public static final Standard14Fonts.FontName COURIER_BOLD
-
COURIER_OBLIQUE
public static final Standard14Fonts.FontName COURIER_OBLIQUE
-
COURIER_BOLD_OBLIQUE
public static final Standard14Fonts.FontName COURIER_BOLD_OBLIQUE
-
SYMBOL
public static final Standard14Fonts.FontName SYMBOL
-
ZAPF_DINGBATS
public static final Standard14Fonts.FontName ZAPF_DINGBATS
-
-
Method Detail
-
values
public static Standard14Fonts.FontName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Standard14Fonts.FontName c : Standard14Fonts.FontName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Standard14Fonts.FontName valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Standard14Fonts.FontName>
-
-