pt.tumba.parser.swf
Class Transform

java.lang.Object
  extended by pt.tumba.parser.swf.Matrix
      extended by pt.tumba.parser.swf.Transform

public class Transform
extends Matrix

A Transformation matrix that has translation coordinates in pixels

Author:
unknown

Field Summary
 
Fields inherited from class pt.tumba.parser.swf.Matrix
scaleX, scaleY, skew0, skew1, translateX, translateY
 
Constructor Summary
Transform()
          An identity transform
Transform(double translateX, double translateY)
          A transform that only translates
Transform(double radians, double translateX, double translateY)
          A transform that rotates and translates
Transform(double scaleX, double scaleY, double translateX, double translateY)
          A transform that scales and translates
Transform(double radians, double scaleX, double scaleY, double translateX, double translateY)
          A transform that rotates, scales and translates
Transform(double scaleX, double scaleY, double skew0, double skew1, double translateX, double translateY)
          Specify all the matrix components
Transform(Matrix matrix)
          Copy an existing matrix
 
Method Summary
 double getTranslateX()
          Gets the translateX attribute of the Transform object
 double getTranslateY()
          Gets the translateY attribute of the Transform object
 void setTranslateX(double translateX)
          Sets the translateX attribute of the Transform object
 void setTranslateY(double translateY)
          Sets the translateY attribute of the Transform object
 
Methods inherited from class pt.tumba.parser.swf.Matrix
getScaleX, getScaleY, getSkew0, getSkew1, setScaleX, setScaleY, setSkew0, setSkew1, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transform

public Transform(Matrix matrix)
Copy an existing matrix

Parameters:
matrix - Description of the Parameter

Transform

public Transform()
An identity transform


Transform

public Transform(double translateX,
                 double translateY)
A transform that only translates

Parameters:
translateX - Description of the Parameter
translateY - Description of the Parameter

Transform

public Transform(double radians,
                 double translateX,
                 double translateY)
A transform that rotates and translates

Parameters:
radians - Description of the Parameter
translateX - Description of the Parameter
translateY - Description of the Parameter

Transform

public Transform(double scaleX,
                 double scaleY,
                 double translateX,
                 double translateY)
A transform that scales and translates

Parameters:
scaleX - Description of the Parameter
scaleY - Description of the Parameter
translateX - Description of the Parameter
translateY - Description of the Parameter

Transform

public Transform(double radians,
                 double scaleX,
                 double scaleY,
                 double translateX,
                 double translateY)
A transform that rotates, scales and translates

Parameters:
radians - Description of the Parameter
scaleX - Description of the Parameter
scaleY - Description of the Parameter
translateX - Description of the Parameter
translateY - Description of the Parameter

Transform

public Transform(double scaleX,
                 double scaleY,
                 double skew0,
                 double skew1,
                 double translateX,
                 double translateY)
Specify all the matrix components

Parameters:
scaleX - Description of the Parameter
scaleY - Description of the Parameter
skew0 - Description of the Parameter
skew1 - Description of the Parameter
translateX - Description of the Parameter
translateY - Description of the Parameter
Method Detail

getTranslateX

public double getTranslateX()
Gets the translateX attribute of the Transform object

Overrides:
getTranslateX in class Matrix
Returns:
The translateX value

getTranslateY

public double getTranslateY()
Gets the translateY attribute of the Transform object

Overrides:
getTranslateY in class Matrix
Returns:
The translateY value

setTranslateX

public void setTranslateX(double translateX)
Sets the translateX attribute of the Transform object

Overrides:
setTranslateX in class Matrix
Parameters:
translateX - The new translateX value

setTranslateY

public void setTranslateY(double translateY)
Sets the translateY attribute of the Transform object

Overrides:
setTranslateY in class Matrix
Parameters:
translateY - The new translateY value