org.apache.batik.ext.awt.g2d

Class TransformType

public class TransformType extends Object

Enumeration for transformation types.
Field Summary
static TransformTypeGENERAL
static StringGENERAL_STRING
static TransformTypeROTATE
static StringROTATE_STRING
static TransformTypeSCALE
static StringSCALE_STRING
static TransformTypeSHEAR
static StringSHEAR_STRING
static intTRANSFORM_GENERAL
static intTRANSFORM_ROTATE
static intTRANSFORM_SCALE
static intTRANSFORM_SHEAR
static intTRANSFORM_TRANSLATE
static TransformTypeTRANSLATE
TransformType values
static StringTRANSLATE_STRING
Strings describing the elementary transforms
Method Summary
ObjectreadResolve()
This is called by the serialization code before it returns an unserialized object.
inttoInt()
Convenience for enumeration switching.
StringtoString()

Field Detail

GENERAL

public static final TransformType GENERAL

GENERAL_STRING

public static final String GENERAL_STRING

ROTATE

public static final TransformType ROTATE

ROTATE_STRING

public static final String ROTATE_STRING

SCALE

public static final TransformType SCALE

SCALE_STRING

public static final String SCALE_STRING

SHEAR

public static final TransformType SHEAR

SHEAR_STRING

public static final String SHEAR_STRING

TRANSFORM_GENERAL

public static final int TRANSFORM_GENERAL

TRANSFORM_ROTATE

public static final int TRANSFORM_ROTATE

TRANSFORM_SCALE

public static final int TRANSFORM_SCALE

TRANSFORM_SHEAR

public static final int TRANSFORM_SHEAR

TRANSFORM_TRANSLATE

public static final int TRANSFORM_TRANSLATE

TRANSLATE

public static final TransformType TRANSLATE
TransformType values

TRANSLATE_STRING

public static final String TRANSLATE_STRING
Strings describing the elementary transforms

Method Detail

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

toInt

public int toInt()
Convenience for enumeration switching. That is,
   switch(transformType.toInt()){
       case TransformType.TRANSFORM_TRANSLATE:
        ....
       case TransformType.TRANSFORM_ROTATE:
 

toString

public String toString()

Returns: description

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.