org.apache.batik.parser
Interface Transform


public interface Transform

This interface represents objects which hold informations about SVG transform values.


Field Summary
static int MATRIX
          To represent a generic matrix.
static int ROTATE
          To represent a rotation matrix.
static int SCALE
          To represent a scaling matrix.
static int SKEWX
          To represent a x shearing matrix.
static int SKEWY
          To represent a y shearing matrix.
static int TRANSLATE
          To represent a translation matrix.
 
Method Summary
 float getA()
          Returns the content of the cell (0, 0).
 float getAngle()
          Returns the angle in case the type of this transform is one of ROTATE, SKEWX or SKEWY.
 float getB()
          Returns the content of the cell (0, 1).
 float getC()
          Returns the content of the cell (0, 2).
 float getD()
          Returns the content of the cell (1, 0).
 float getE()
          Returns the content of the cell (1, 1).
 float getF()
          Returns the content of the cell (1, 2).
 float getScaleX()
          An alias for getA().
 float getScaleY()
          An alias for getE().
 float getSkewX()
          An alias for getB().
 float getSkewY()
          An alias for getD().
 float getTranslateX()
          An alias for getC().
 float getTranslateY()
          An alias for getF().
 int getType()
          Returns the type of this matrix.
 

Field Detail

MATRIX

public static final int MATRIX
To represent a generic matrix.

ROTATE

public static final int ROTATE
To represent a rotation matrix.

SCALE

public static final int SCALE
To represent a scaling matrix.

SKEWX

public static final int SKEWX
To represent a x shearing matrix.

SKEWY

public static final int SKEWY
To represent a y shearing matrix.

TRANSLATE

public static final int TRANSLATE
To represent a translation matrix.
Method Detail

getType

public int getType()
Returns the type of this matrix.

getAngle

public float getAngle()
Returns the angle in case the type of this transform is one of ROTATE, SKEWX or SKEWY.
Throws:
java.lang.IllegalStateException - if the matrix type is not one of ROTATE, SKEWX or SKEWY.

getA

public float getA()
Returns the content of the cell (0, 0).

getScaleX

public float getScaleX()
An alias for getA().

getB

public float getB()
Returns the content of the cell (0, 1).

getSkewX

public float getSkewX()
An alias for getB().

getC

public float getC()
Returns the content of the cell (0, 2).

getTranslateX

public float getTranslateX()
An alias for getC().

getD

public float getD()
Returns the content of the cell (1, 0).

getSkewY

public float getSkewY()
An alias for getD().

getE

public float getE()
Returns the content of the cell (1, 1).

getScaleY

public float getScaleY()
An alias for getE().

getF

public float getF()
Returns the content of the cell (1, 2).

getTranslateY

public float getTranslateY()
An alias for getF().


Copyright © 2001 Apache Software Foundation. All Rights Reserved.