Package com.tom_roush.fontbox.cff
Class CFFOperator
- java.lang.Object
-
- com.tom_roush.fontbox.cff.CFFOperator
-
public final class CFFOperator extends Object
This class represents a CFF operator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFFOperator.KeyThis class is a holder for a key value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)CFFOperator.KeygetKey()The key of the operator.StringgetName()The name of the operator.static CFFOperatorgetOperator(CFFOperator.Key key)Returns the operator corresponding to the given key.static CFFOperatorgetOperator(String name)Returns the operator corresponding to the given name.inthashCode()StringtoString()
-
-
-
Method Detail
-
getKey
public CFFOperator.Key getKey()
The key of the operator.- Returns:
- the key
-
getName
public String getName()
The name of the operator.- Returns:
- the name
-
getOperator
public static CFFOperator getOperator(CFFOperator.Key key)
Returns the operator corresponding to the given key.- Parameters:
key- the given key- Returns:
- the corresponding operator
-
getOperator
public static CFFOperator getOperator(String name)
Returns the operator corresponding to the given name.- Parameters:
name- the given name- Returns:
- the corresponding operator
-
-