pt.tumba.parser.swf
Class AlphaTransform

java.lang.Object
  extended by pt.tumba.parser.swf.ColorTransform
      extended by pt.tumba.parser.swf.AlphaTransform

public class AlphaTransform
extends ColorTransform

Description of the Class

Author:
unknown

Field Summary
 
Fields inherited from class pt.tumba.parser.swf.ColorTransform
addAlpha, addBlue, addGreen, addRed, multAlpha, multBlue, multGreen, multRed
 
Constructor Summary
AlphaTransform()
          An identity transform
AlphaTransform(ColorTransform copy)
          Copy another transform
AlphaTransform(double multRed, double multGreen, double multBlue, double multAlpha)
          Constructor for the AlphaTransform object
AlphaTransform(double multRed, double multGreen, double multBlue, double multAlpha, int addRed, int addGreen, int addBlue, int addAlpha)
          Constructor for the AlphaTransform object
AlphaTransform(InStream in)
          Constructor for the AlphaTransform object
AlphaTransform(int addRed, int addGreen, int addBlue, int addAlpha)
          Constructor for the AlphaTransform object
 
Method Summary
 int getAddAlpha()
          Gets the addAlpha attribute of the AlphaTransform object
 double getMultAlpha()
          Gets the multAlpha attribute of the AlphaTransform object
 void setAddAlpha(int addAlpha)
          Sets the addAlpha attribute of the AlphaTransform object
 void setMultAlpha(double multAlpha)
          Sets the multAlpha attribute of the AlphaTransform object
 java.lang.String toString()
          Description of the Method
 void write(OutStream out)
          Description of the Method
 void writeWithoutAlpha(OutStream out)
          Description of the Method
 
Methods inherited from class pt.tumba.parser.swf.ColorTransform
getAddBlue, getAddGreen, getAddRed, getMultBlue, getMultGreen, getMultRed, setAddBlue, setAddGreen, setAddRed, setMultBlue, setMultGreen, setMultRed, writeWithAlpha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlphaTransform

public AlphaTransform()
An identity transform


AlphaTransform

public AlphaTransform(ColorTransform copy)
Copy another transform

Parameters:
copy - Description of the Parameter

AlphaTransform

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

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

AlphaTransform

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

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

AlphaTransform

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

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

AlphaTransform

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

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

getMultAlpha

public double getMultAlpha()
Gets the multAlpha attribute of the AlphaTransform object

Returns:
The multAlpha value

getAddAlpha

public int getAddAlpha()
Gets the addAlpha attribute of the AlphaTransform object

Returns:
The addAlpha value

setMultAlpha

public void setMultAlpha(double multAlpha)
Sets the multAlpha attribute of the AlphaTransform object

Parameters:
multAlpha - The new multAlpha value

setAddAlpha

public void setAddAlpha(int addAlpha)
Sets the addAlpha attribute of the AlphaTransform object

Parameters:
addAlpha - The new addAlpha value

write

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

Overrides:
write in class ColorTransform
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

Overrides:
writeWithoutAlpha in class ColorTransform
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 ColorTransform
Returns:
Description of the Return Value