Class TransformType

java.lang.Object
org.apache.xmlgraphics.java2d.TransformType

public final class TransformType extends Object
Enumeration for transformation types.
Version:
$Id$ Originally authored by Vincent Hardy.
  • Field Details

  • Constructor Details

    • TransformType

      private TransformType(int val, String desc)
      Constructor is private so that no instances other than the ones in the enumeration can be created.
      See Also:
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      description
    • 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