Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.anotherbigidea.flash.structs
Class ColorTransform  view ColorTransform download ColorTransform.java

java.lang.Object
  extended bycom.anotherbigidea.flash.structs.ColorTransform
Direct Known Subclasses:
AlphaTransform

public class ColorTransform
extends java.lang.Object


Field Summary
protected  int addAlpha
           
protected  int addBlue
           
protected  int addGreen
           
protected  int addRed
           
protected  double multAlpha
           
protected  double multBlue
           
protected  double multGreen
           
protected  double multRed
           
 
Constructor Summary
ColorTransform()
          An identity transform
ColorTransform(double multRed, double multGreen, double multBlue)
           
ColorTransform(double multRed, double multGreen, double multBlue, int addRed, int addGreen, int addBlue)
           
ColorTransform(com.anotherbigidea.io.InStream in)
           
ColorTransform(int addRed, int addGreen, int addBlue)
           
 
Method Summary
 int getAddBlue()
           
 int getAddGreen()
           
 int getAddRed()
           
 double getMultBlue()
           
 double getMultGreen()
           
 double getMultRed()
           
 void setAddBlue(int addBlue)
           
 void setAddGreen(int addGreen)
           
 void setAddRed(int addRed)
           
 void setMultBlue(double multBlue)
           
 void setMultGreen(double multGreen)
           
 void setMultRed(double multRed)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void write(com.anotherbigidea.io.OutStream out)
           
 void writeWithAlpha(com.anotherbigidea.io.OutStream out)
           
 void writeWithoutAlpha(com.anotherbigidea.io.OutStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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()).