Package org.apache.fontbox.cff
Class CharStringCommand
java.lang.Object
org.apache.fontbox.cff.CharStringCommand
This class represents a CharStringCommand.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumEnum of all valid type1 key wordsstatic enumEnum of all valid type2 key words -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<Integer, CharStringCommand> static final CharStringCommandstatic final CharStringCommandstatic final CharStringCommandstatic final CharStringCommandstatic final CharStringCommandstatic final CharStringCommandprivate static final CharStringCommandstatic final CharStringCommandprivate static final intprivate final CharStringCommand.Type1KeyWordprivate final CharStringCommand.Type2KeyWord -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCharStringCommand(int b0, int b1) Constructor with two values.privateConstructor with the CharStringCommand key as value. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Map<Integer, CharStringCommand> booleanstatic CharStringCommandgetInstance(int b0) Get an instance of the CharStringCommand represented by the given value.static CharStringCommandgetInstance(int[] values) Get an instance of the CharStringCommand represented by the given array.static CharStringCommandgetInstance(int b0, int b1) Get an instance of the CharStringCommand represented by the given two values.private static intgetKeyHashValue(int b0, int b1) Return the underlying type1 key word.Return the underlying type2 key word.inthashCode()toString()
-
Field Details
-
type1KeyWord
-
type2KeyWord
-
CHAR_STRING_COMMANDS
-
COMMAND_CLOSEPATH
-
COMMAND_RLINETO
-
COMMAND_HLINETO
-
COMMAND_VLINETO
-
COMMAND_RRCURVETO
-
COMMAND_HSBW
-
COMMAND_CALLOTHERSUBR
-
KEY_UNKNOWN
private static final int KEY_UNKNOWN- See Also:
-
COMMAND_UNKNOWN
-
-
Constructor Details
-
CharStringCommand
Constructor with the CharStringCommand key as value.- Parameters:
key- the key of the char string command
-
CharStringCommand
private CharStringCommand(int b0, int b1) Constructor with two values.- Parameters:
b0- value1b1- value2
-
-
Method Details
-
createMap
-
getInstance
Get an instance of the CharStringCommand represented by the given value.- Parameters:
b0- value- Returns:
- CharStringCommand represented by the given value
-
getInstance
Get an instance of the CharStringCommand represented by the given two values.- Parameters:
b0- value1b1- value2- Returns:
- CharStringCommand represented by the given two values
-
getInstance
Get an instance of the CharStringCommand represented by the given array.- Parameters:
values- array of values- Returns:
- CharStringCommand represented by the given values
-
getKeyHashValue
private static int getKeyHashValue(int b0, int b1) -
getType1KeyWord
Return the underlying type1 key word.- Returns:
- the type1 key word
-
getType2KeyWord
Return the underlying type2 key word.- Returns:
- the type2 key word
-
toString
-
hashCode
public int hashCode() -
equals
-