pt.tumba.parser.swf
Class AlphaColor

java.lang.Object
  extended by pt.tumba.parser.swf.Color
      extended by pt.tumba.parser.swf.AlphaColor

public class AlphaColor
extends Color

A Color with an Alpha component

Author:
unknown

Field Summary
protected  int alpha
          Description of the Field
 
Fields inherited from class pt.tumba.parser.swf.Color
blue, green, red
 
Constructor Summary
AlphaColor(Color color, int alpha)
          Constructor for the AlphaColor object
AlphaColor(InStream in)
          Constructor for the AlphaColor object
AlphaColor(int red, int green, int blue, int alpha)
          Constructor for the AlphaColor object
 
Method Summary
 boolean equals(java.lang.Object color)
          Description of the Method
 int getAlpha()
          Gets the alpha attribute of the AlphaColor object
 int hashCode()
           
 void setAlpha(int alpha)
          Sets the alpha attribute of the AlphaColor 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
 
Methods inherited from class pt.tumba.parser.swf.Color
getBlue, getGreen, getRed, setBlue, setGreen, setRed, writeRGB
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

alpha

protected int alpha
Description of the Field

Constructor Detail

AlphaColor

public AlphaColor(int red,
                  int green,
                  int blue,
                  int alpha)
Constructor for the AlphaColor object

Parameters:
red - Description of the Parameter
green - Description of the Parameter
blue - Description of the Parameter
alpha - Description of the Parameter

AlphaColor

public AlphaColor(Color color,
                  int alpha)
Constructor for the AlphaColor object

Parameters:
color - Description of the Parameter
alpha - Description of the Parameter

AlphaColor

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

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

getAlpha

public int getAlpha()
Gets the alpha attribute of the AlphaColor object

Returns:
The alpha value

setAlpha

public void setAlpha(int alpha)
Sets the alpha attribute of the AlphaColor object

Parameters:
alpha - The new alpha value

write

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

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

Overrides:
writeWithAlpha in class Color
Parameters:
out - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

equals

public boolean equals(java.lang.Object color)
Description of the Method

Overrides:
equals in class Color
Parameters:
color - Description of the Parameter
Returns:
Description of the Return Value

hashCode

public int hashCode()
Overrides:
hashCode in class Color

toString

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

Overrides:
toString in class Color
Returns:
Description of the Return Value