pt.tumba.parser.swf
Class ColorTransform

java.lang.Object
  extended by pt.tumba.parser.swf.ColorTransform
Direct Known Subclasses:
AlphaTransform

public class ColorTransform
extends java.lang.Object

Description of the Class

Author:
unknown

Field Summary
protected  int addAlpha
          Description of the Field
protected  int addBlue
          Description of the Field
protected  int addGreen
          Description of the Field
protected  int addRed
          Description of the Field
protected  double multAlpha
          Description of the Field
protected  double multBlue
          Description of the Field
protected  double multGreen
          Description of the Field
protected  double multRed
          Description of the Field
 
Constructor Summary
ColorTransform()
          An identity transform
ColorTransform(double multRed, double multGreen, double multBlue)
          Constructor for the ColorTransform object
ColorTransform(double multRed, double multGreen, double multBlue, int addRed, int addGreen, int addBlue)
          Constructor for the ColorTransform object
ColorTransform(InStream in)
          Constructor for the ColorTransform object
ColorTransform(int addRed, int addGreen, int addBlue)
          Constructor for the ColorTransform object
 
Method Summary
 int getAddBlue()
          Gets the addBlue attribute of the ColorTransform object
 int getAddGreen()
          Gets the addGreen attribute of the ColorTransform object
 int getAddRed()
          Gets the addRed attribute of the ColorTransform object
 double getMultBlue()
          Gets the multBlue attribute of the ColorTransform object
 double getMultGreen()
          Gets the multGreen attribute of the ColorTransform object
 double getMultRed()
          Gets the multRed attribute of the ColorTransform object
 void setAddBlue(int addBlue)
          Sets the addBlue attribute of the ColorTransform object
 void setAddGreen(int addGreen)
          Sets the addGreen attribute of the ColorTransform object
 void setAddRed(int addRed)
          Sets the addRed attribute of the ColorTransform object
 void setMultBlue(double multBlue)
          Sets the multBlue attribute of the ColorTransform object
 void setMultGreen(double multGreen)
          Sets the multGreen attribute of the ColorTransform object
 void setMultRed(double multRed)
          Sets the multRed attribute of the ColorTransform object
 java.lang.String toString()
          Description of the Method
 void write(OutStream out)
          Description of the Method
 void writeWithAlpha(OutStream out)
          Description of the Method
 void writeWithoutAlpha(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

multRed

protected double multRed
Description of the Field


multGreen

protected double multGreen
Description of the Field


multBlue

protected double multBlue
Description of the Field


addRed

protected int addRed
Description of the Field


addGreen

protected int addGreen
Description of the Field


addBlue

protected int addBlue
Description of the Field


multAlpha

protected double multAlpha
Description of the Field


addAlpha

protected int addAlpha
Description of the Field

Constructor Detail

ColorTransform

public ColorTransform()
An identity transform


ColorTransform

public ColorTransform(double multRed,
                      double multGreen,
                      double multBlue,
                      int addRed,
                      int addGreen,
                      int addBlue)
Constructor for the ColorTransform object

Parameters:
multRed - Description of the Parameter
multGreen - Description of the Parameter
multBlue - Description of the Parameter
addRed - Description of the Parameter
addGreen - Description of the Parameter
addBlue - Description of the Parameter

ColorTransform

public ColorTransform(int addRed,
                      int addGreen,
                      int addBlue)
Constructor for the ColorTransform object

Parameters:
addRed - Description of the Parameter
addGreen - Description of the Parameter
addBlue - Description of the Parameter

ColorTransform

public ColorTransform(double multRed,
                      double multGreen,
                      double multBlue)
Constructor for the ColorTransform object

Parameters:
multRed - Description of the Parameter
multGreen - Description of the Parameter
multBlue - Description of the Parameter

ColorTransform

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

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

getMultRed

public double getMultRed()
Gets the multRed attribute of the ColorTransform object

Returns:
The multRed value

getMultGreen

public double getMultGreen()
Gets the multGreen attribute of the ColorTransform object

Returns:
The multGreen value

getMultBlue

public double getMultBlue()
Gets the multBlue attribute of the ColorTransform object

Returns:
The multBlue value

getAddRed

public int getAddRed()
Gets the addRed attribute of the ColorTransform object

Returns:
The addRed value

getAddGreen

public int getAddGreen()
Gets the addGreen attribute of the ColorTransform object

Returns:
The addGreen value

getAddBlue

public int getAddBlue()
Gets the addBlue attribute of the ColorTransform object

Returns:
The addBlue value

setMultRed

public void setMultRed(double multRed)
Sets the multRed attribute of the ColorTransform object

Parameters:
multRed - The new multRed value

setMultGreen

public void setMultGreen(double multGreen)
Sets the multGreen attribute of the ColorTransform object

Parameters:
multGreen - The new multGreen value

setMultBlue

public void setMultBlue(double multBlue)
Sets the multBlue attribute of the ColorTransform object

Parameters:
multBlue - The new multBlue value

setAddRed

public void setAddRed(int addRed)
Sets the addRed attribute of the ColorTransform object

Parameters:
addRed - The new addRed value

setAddGreen

public void setAddGreen(int addGreen)
Sets the addGreen attribute of the ColorTransform object

Parameters:
addGreen - The new addGreen value

setAddBlue

public void setAddBlue(int addBlue)
Sets the addBlue attribute of the ColorTransform object

Parameters:
addBlue - The new addBlue 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

writeWithoutAlpha

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

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

writeWithAlpha

public void writeWithAlpha(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