Package org.apache.xmlgraphics.java2d
Class TransformType
java.lang.Object
org.apache.xmlgraphics.java2d.TransformType
Enumeration for transformation types.
- Version:
- $Id: TransformType.java 1732018 2016-02-24 04:51:06Z gadams $ Originally authored by Vincent Hardy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
static final TransformType
static final String
static final TransformType
static final String
static final TransformType
static final String
static final TransformType
static final String
static final int
static final int
static final int
static final int
static final int
static final TransformType
TransformType valuesstatic final String
Strings describing the elementary transformsprivate int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TransformType
(int val, String desc) Constructor is private so that no instances other than the ones in the enumeration can be created. -
Method Summary
-
Field Details
-
TRANSFORM_TRANSLATE
public static final int TRANSFORM_TRANSLATE- See Also:
-
TRANSFORM_ROTATE
public static final int TRANSFORM_ROTATE- See Also:
-
TRANSFORM_SCALE
public static final int TRANSFORM_SCALE- See Also:
-
TRANSFORM_SHEAR
public static final int TRANSFORM_SHEAR- See Also:
-
TRANSFORM_GENERAL
public static final int TRANSFORM_GENERAL- See Also:
-
TRANSLATE_STRING
Strings describing the elementary transforms- See Also:
-
ROTATE_STRING
- See Also:
-
SCALE_STRING
- See Also:
-
SHEAR_STRING
- See Also:
-
GENERAL_STRING
- See Also:
-
TRANSLATE
TransformType values -
ROTATE
-
SCALE
-
SHEAR
-
GENERAL
-
desc
-
val
private int val
-
-
Constructor Details
-
TransformType
Constructor is private so that no instances other than the ones in the enumeration can be created.- See Also:
-
-
Method Details
-
toString
-
toInt
public int toInt()Convenience for enumeration switching. That is,switch(transformType.toInt()){ case TransformType.TRANSFORM_TRANSLATE: .... case TransformType.TRANSFORM_ROTATE:
-
readResolve
This is called by the serialization code before it returns an unserialized object. To provide for unicity of instances, the instance that was read is replaced by its static equivalent
-