java.lang.Object
com.anotherbigidea.flash.structs.ColorTransform
- Direct Known Subclasses:
- AlphaTransform
- public class ColorTransform
- extends java.lang.Object
multRed
protected double multRed
multGreen
protected double multGreen
multBlue
protected double multBlue
addRed
protected int addRed
addGreen
protected int addGreen
addBlue
protected int addBlue
multAlpha
protected double multAlpha
addAlpha
protected int addAlpha
ColorTransform
public ColorTransform()
- An identity transform
ColorTransform
public ColorTransform(double multRed,
double multGreen,
double multBlue,
int addRed,
int addGreen,
int addBlue)
ColorTransform
public ColorTransform(int addRed,
int addGreen,
int addBlue)
ColorTransform
public ColorTransform(double multRed,
double multGreen,
double multBlue)
ColorTransform
public ColorTransform(com.anotherbigidea.io.InStream in)
throws java.io.IOException
getMultRed
public double getMultRed()
getMultGreen
public double getMultGreen()
getMultBlue
public double getMultBlue()
getAddRed
public int getAddRed()
getAddGreen
public int getAddGreen()
getAddBlue
public int getAddBlue()
setMultRed
public void setMultRed(double multRed)
setMultGreen
public void setMultGreen(double multGreen)
setMultBlue
public void setMultBlue(double multBlue)
setAddRed
public void setAddRed(int addRed)
setAddGreen
public void setAddGreen(int addGreen)
setAddBlue
public void setAddBlue(int addBlue)
write
public void write(com.anotherbigidea.io.OutStream out)
throws java.io.IOException
writeWithoutAlpha
public void writeWithoutAlpha(com.anotherbigidea.io.OutStream out)
throws java.io.IOException
writeWithAlpha
public void writeWithAlpha(com.anotherbigidea.io.OutStream out)
throws java.io.IOException
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).