pt.tumba.parser.swf
Class Matrix

java.lang.Object
  extended by pt.tumba.parser.swf.Matrix
Direct Known Subclasses:
Transform

public class Matrix
extends java.lang.Object

Description of the Class

Author:
unknown

Field Summary
protected  double scaleX
          Description of the Field
protected  double scaleY
          Description of the Field
protected  double skew0
          Description of the Field
protected  double skew1
          Description of the Field
protected  double translateX
          Description of the Field
protected  double translateY
          Description of the Field
 
Constructor Summary
Matrix()
          An identity matrix
Matrix(double translateX, double translateY)
          Constructor for the Matrix object
Matrix(double scaleX, double scaleY, double skew0, double skew1, double translateX, double translateY)
          Constructor for the Matrix object
Matrix(InStream in)
          Constructor for the Matrix object
Matrix(Matrix copy)
          Copy another matrix
 
Method Summary
 double getScaleX()
          Gets the scaleX attribute of the Matrix object
 double getScaleY()
          Gets the scaleY attribute of the Matrix object
 double getSkew0()
          Gets the skew0 attribute of the Matrix object
 double getSkew1()
          Gets the skew1 attribute of the Matrix object
 double getTranslateX()
          Gets the translateX attribute of the Matrix object
 double getTranslateY()
          Gets the translateY attribute of the Matrix object
 void setScaleX(double scaleX)
          Sets the scaleX attribute of the Matrix object
 void setScaleY(double scaleY)
          Sets the scaleY attribute of the Matrix object
 void setSkew0(double skew0)
          Sets the skew0 attribute of the Matrix object
 void setSkew1(double skew1)
          Sets the skew1 attribute of the Matrix object
 void setTranslateX(double translateX)
          Sets the translateX attribute of the Matrix object
 void setTranslateY(double translateY)
          Sets the translateY attribute of the Matrix object
 java.lang.String toString()
          Description of the Method
 void write(OutStream out)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scaleX

protected double scaleX
Description of the Field


scaleY

protected double scaleY
Description of the Field


skew0

protected double skew0
Description of the Field


skew1

protected double skew1
Description of the Field


translateX

protected double translateX
Description of the Field


translateY

protected double translateY
Description of the Field

Constructor Detail

Matrix

public Matrix()
An identity matrix


Matrix

public Matrix(double translateX,
              double translateY)
Constructor for the Matrix object

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

Matrix

public Matrix(Matrix copy)
Copy another matrix

Parameters:
copy - Description of the Parameter

Matrix

public Matrix(double scaleX,
              double scaleY,
              double skew0,
              double skew1,
              double translateX,
              double translateY)
Constructor for the Matrix object

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

Matrix

public Matrix(InStream in)
       throws java.io.IOException
Constructor for the Matrix object

Parameters:
in - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception
Method Detail

getScaleX

public double getScaleX()
Gets the scaleX attribute of the Matrix object

Returns:
The scaleX value

getScaleY

public double getScaleY()
Gets the scaleY attribute of the Matrix object

Returns:
The scaleY value

getSkew0

public double getSkew0()
Gets the skew0 attribute of the Matrix object

Returns:
The skew0 value

getSkew1

public double getSkew1()
Gets the skew1 attribute of the Matrix object

Returns:
The skew1 value

getTranslateX

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

Returns:
The translateX value

getTranslateY

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

Returns:
The translateY value

setScaleX

public void setScaleX(double scaleX)
Sets the scaleX attribute of the Matrix object

Parameters:
scaleX - The new scaleX value

setScaleY

public void setScaleY(double scaleY)
Sets the scaleY attribute of the Matrix object

Parameters:
scaleY - The new scaleY value

setSkew0

public void setSkew0(double skew0)
Sets the skew0 attribute of the Matrix object

Parameters:
skew0 - The new skew0 value

setSkew1

public void setSkew1(double skew1)
Sets the skew1 attribute of the Matrix object

Parameters:
skew1 - The new skew1 value

setTranslateX

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

Parameters:
translateX - The new translateX value

setTranslateY

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

Parameters:
translateY - The new translateY value

write

public void write(OutStream out)
           throws java.io.IOException
Description of the Method

Parameters:
out - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value