Package org.librepdf.openpdf.fonts
Enum Liberation
- java.lang.Object
-
- java.lang.Enum<Liberation>
-
- org.librepdf.openpdf.fonts.Liberation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Liberation>
public enum Liberation extends java.lang.Enum<Liberation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MONO
MONO_BOLD
MONO_BOLDITALIC
MONO_ITALIC
SANS
SANS_BOLD
SANS_BOLDITALIC
SANS_ITALIC
SERIF
SERIF_BOLD
SERIF_BOLDITALIC
SERIF_ITALIC
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
trueTypeFile
-
Constructor Summary
Constructors Modifier Constructor Description private
Liberation(java.lang.String trueTypeFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Font
create()
Font
create(int size)
static Liberation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Liberation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MONO
public static final Liberation MONO
-
MONO_ITALIC
public static final Liberation MONO_ITALIC
-
MONO_BOLD
public static final Liberation MONO_BOLD
-
MONO_BOLDITALIC
public static final Liberation MONO_BOLDITALIC
-
SANS
public static final Liberation SANS
-
SANS_ITALIC
public static final Liberation SANS_ITALIC
-
SANS_BOLD
public static final Liberation SANS_BOLD
-
SANS_BOLDITALIC
public static final Liberation SANS_BOLDITALIC
-
SERIF
public static final Liberation SERIF
-
SERIF_ITALIC
public static final Liberation SERIF_ITALIC
-
SERIF_BOLD
public static final Liberation SERIF_BOLD
-
SERIF_BOLDITALIC
public static final Liberation SERIF_BOLDITALIC
-
-
Method Detail
-
values
public static Liberation[] 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 (Liberation c : Liberation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Liberation 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
-
create
public Font create() throws java.io.IOException
- Throws:
java.io.IOException
-
create
public Font create(int size) throws java.io.IOException
- Throws:
java.io.IOException
-
-