Package com.pdftools.toolbox.pdf.content
Enum FontWeight
- java.lang.Object
-
- java.lang.Enum<FontWeight>
-
- com.pdftools.toolbox.pdf.content.FontWeight
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FontWeight>
public enum FontWeight extends java.lang.Enum<FontWeight>
Indicates the visual weight (degree of blackness or thickness of strokes) of the characters in the font.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACK
BOLD
EXTRA_BOLD
EXTRA_LIGHT
LIGHT
MEDIUM
NORMAL
SEMI_BOLD
THIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FontWeight
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FontWeight[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THIN
public static final FontWeight THIN
-
EXTRA_LIGHT
public static final FontWeight EXTRA_LIGHT
-
LIGHT
public static final FontWeight LIGHT
-
NORMAL
public static final FontWeight NORMAL
-
MEDIUM
public static final FontWeight MEDIUM
-
SEMI_BOLD
public static final FontWeight SEMI_BOLD
-
BOLD
public static final FontWeight BOLD
-
EXTRA_BOLD
public static final FontWeight EXTRA_BOLD
-
BLACK
public static final FontWeight BLACK
-
-
Method Detail
-
values
public static FontWeight[] 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 (FontWeight c : FontWeight.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontWeight 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
-
-