|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.parser.swf.Color pt.tumba.parser.swf.AlphaColor
public class AlphaColor
A Color with an Alpha component
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 |
---|
protected int alpha
Constructor Detail |
---|
public AlphaColor(int red, int green, int blue, int alpha)
red
- Description of the Parametergreen
- Description of the Parameterblue
- Description of the Parameteralpha
- Description of the Parameterpublic AlphaColor(Color color, int alpha)
color
- Description of the Parameteralpha
- Description of the Parameterpublic AlphaColor(InStream in) throws java.io.IOException
in
- Description of the Parameter
java.io.IOException
- Description of the ExceptionMethod Detail |
---|
public int getAlpha()
public void setAlpha(int alpha)
alpha
- The new alpha valuepublic void write(OutStream out) throws java.io.IOException
write
in class Color
out
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void writeWithAlpha(OutStream out) throws java.io.IOException
writeWithAlpha
in class Color
out
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic boolean equals(java.lang.Object color)
equals
in class Color
color
- Description of the Parameter
public int hashCode()
hashCode
in class Color
public java.lang.String toString()
toString
in class Color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |