Class TransformType
java.lang.Object
org.apache.xmlgraphics.java2d.TransformType
Enumeration for transformation types.
- Version:
- $Id$ Originally authored by Vincent Hardy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringstatic final TransformTypestatic final Stringstatic final TransformTypestatic final Stringstatic final TransformTypestatic final Stringstatic final TransformTypestatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final TransformTypeTransformType valuesstatic final StringStrings describing the elementary transformsprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTransformType(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
-
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
-