pt.tumba.parser.swf
Class Color

java.lang.Object
  extended by pt.tumba.parser.swf.Color
Direct Known Subclasses:
AlphaColor

public class Color
extends java.lang.Object

An RGB Color without alpha

Author:
unknown

Field Summary
protected  int blue
          Description of the Field
protected  int green
          Description of the Field
protected  int red
          Description of the Field
 
Constructor Summary
Color(InStream in)
          Constructor for the Color object
Color(int red, int green, int blue)
          Constructor for the Color object
 
Method Summary
 boolean equals(java.lang.Object color)
          Description of the Method
 int getBlue()
          Gets the blue attribute of the Color object
 int getGreen()
          Gets the green attribute of the Color object
 int getRed()
          Gets the red attribute of the Color object
 int hashCode()
           
 void setBlue(int blue)
          Sets the blue attribute of the Color object
 void setGreen(int green)
          Sets the green attribute of the Color object
 void setRed(int red)
          Sets the red attribute of the Color object
 java.lang.String toString()
          Description of the Method
 void write(OutStream out)
          Description of the Method
 void writeRGB(OutStream out)
          Description of the Method
 void writeWithAlpha(OutStream out)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

red

protected int red
Description of the Field


green

protected int green
Description of the Field


blue

protected int blue
Description of the Field

Constructor Detail

Color

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

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

Color

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

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

getRed

public int getRed()
Gets the red attribute of the Color object

Returns:
The red value

getGreen

public int getGreen()
Gets the green attribute of the Color object

Returns:
The green value

getBlue

public int getBlue()
Gets the blue attribute of the Color object

Returns:
The blue value

setRed

public void setRed(int red)
Sets the red attribute of the Color object

Parameters:
red - The new red value

setGreen

public void setGreen(int green)
Sets the green attribute of the Color object

Parameters:
green - The new green value

setBlue

public void setBlue(int blue)
Sets the blue attribute of the Color object

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

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
color - Description of the Parameter
Returns:
Description of the Return Value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

writeRGB

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