Package org.apache.xmlgraphics.java2d
Class TransformType
- java.lang.Object
-
- org.apache.xmlgraphics.java2d.TransformType
-
public final class TransformType extends Object
Enumeration for transformation types.- Version:
- $Id: TransformType.java 1732018 2016-02-24 04:51:06Z gadams $ Originally authored by Vincent Hardy.
-
-
Field Summary
Fields Modifier and Type Field Description static TransformTypeGENERALstatic StringGENERAL_STRINGstatic TransformTypeROTATEstatic StringROTATE_STRINGstatic TransformTypeSCALEstatic StringSCALE_STRINGstatic TransformTypeSHEARstatic StringSHEAR_STRINGstatic intTRANSFORM_GENERALstatic intTRANSFORM_ROTATEstatic intTRANSFORM_SCALEstatic intTRANSFORM_SHEARstatic intTRANSFORM_TRANSLATEstatic TransformTypeTRANSLATETransformType valuesstatic StringTRANSLATE_STRINGStrings describing the elementary transforms
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectreadResolve()This is called by the serialization code before it returns an unserialized object.inttoInt()Convenience for enumeration switching.StringtoString()
-
-
-
Field Detail
-
TRANSFORM_TRANSLATE
public static final int TRANSFORM_TRANSLATE
- See Also:
- Constant Field Values
-
TRANSFORM_ROTATE
public static final int TRANSFORM_ROTATE
- See Also:
- Constant Field Values
-
TRANSFORM_SCALE
public static final int TRANSFORM_SCALE
- See Also:
- Constant Field Values
-
TRANSFORM_SHEAR
public static final int TRANSFORM_SHEAR
- See Also:
- Constant Field Values
-
TRANSFORM_GENERAL
public static final int TRANSFORM_GENERAL
- See Also:
- Constant Field Values
-
TRANSLATE_STRING
public static final String TRANSLATE_STRING
Strings describing the elementary transforms- See Also:
- Constant Field Values
-
ROTATE_STRING
public static final String ROTATE_STRING
- See Also:
- Constant Field Values
-
SCALE_STRING
public static final String SCALE_STRING
- See Also:
- Constant Field Values
-
SHEAR_STRING
public static final String SHEAR_STRING
- See Also:
- Constant Field Values
-
GENERAL_STRING
public static final String GENERAL_STRING
- See Also:
- Constant Field Values
-
TRANSLATE
public static final TransformType TRANSLATE
TransformType values
-
ROTATE
public static final TransformType ROTATE
-
SCALE
public static final TransformType SCALE
-
SHEAR
public static final TransformType SHEAR
-
GENERAL
public static final TransformType GENERAL
-
-
Method Detail
-
toInt
public int toInt()
Convenience for enumeration switching. That is,switch(transformType.toInt()){ case TransformType.TRANSFORM_TRANSLATE: .... case TransformType.TRANSFORM_ROTATE:
-
readResolve
public Object 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
-
-