Enum Panose.Field
java.lang.Object
java.lang.Enum<Panose.Field>
org.docx4j.fonts.foray.font.format.Panose.Field
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Panose.Field>,java.lang.constant.Constable
- Enclosing class:
- Panose
public static enum Panose.Field extends java.lang.Enum<Panose.Field>
Enumeration of the fields that comprise a PANOSE description.
- See Also:
- "http://fonts.apple.com/TTRefMan/RM06/Chap6OS2.html"
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ARM_STYLEThe bArmStyle field.CONTRASTThe bContrast field.FAMILY_TYPEThe bFamilyType field.LETTERFORMThe bLetterform field.MIDLINEThe bMidline field.PROPORTIONThe bProportion field.SERIF_STYLEThe bSerifStyle field.STROKE_VARIATIONThe bStrokeVariatoon field.WEIGHTThe bWeight field.X_HEIGHTThe bXHeight field. -
Method Summary
Modifier and Type Method Description bytegetIndex()Returns the 0-based index of this element in the PANOSE array.bytegetMaxValue()Returns the maximum valid value for this field.static Panose.FieldvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Panose.Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FAMILY_TYPE
The bFamilyType field. -
SERIF_STYLE
The bSerifStyle field. -
WEIGHT
The bWeight field. -
PROPORTION
The bProportion field. -
CONTRAST
The bContrast field. -
STROKE_VARIATION
The bStrokeVariatoon field. -
ARM_STYLE
The bArmStyle field. -
LETTERFORM
The bLetterform field. -
MIDLINE
The bMidline field. -
X_HEIGHT
The bXHeight field.
-
-
Method Details
-
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
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
-
getIndex
public byte getIndex()Returns the 0-based index of this element in the PANOSE array.- Returns:
- The 0-based index of this element in the PANOSE array.
-
getMaxValue
public byte getMaxValue()Returns the maximum valid value for this field.- Returns:
- The maximum valid value for this field.
-