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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.anotherbigidea.flash.structs.Color
      extended bycom.anotherbigidea.flash.structs.AlphaColor

public class AlphaColor
extends Color

A Color with an Alpha component


Field Summary
protected  int alpha
           
 
Fields inherited from class com.anotherbigidea.flash.structs.Color
blue, green, red
 
Constructor Summary
AlphaColor(Color color, int alpha)
           
AlphaColor(com.anotherbigidea.io.InStream in)
           
AlphaColor(int red, int green, int blue, int alpha)
           
 
Method Summary
 boolean equals(AlphaColor color)
           
 int getAlpha()
           
 void setAlpha(int alpha)
           
 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)
           
 
Methods inherited from class com.anotherbigidea.flash.structs.Color
equals, getBlue, getGreen, getRed, setBlue, setGreen, setRed, writeRGB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alpha

protected int alpha
Constructor Detail

AlphaColor

public AlphaColor(int red,
                  int green,
                  int blue,
                  int alpha)

AlphaColor

public AlphaColor(Color color,
                  int alpha)

AlphaColor

public AlphaColor(com.anotherbigidea.io.InStream in)
           throws java.io.IOException
Method Detail

getAlpha

public int getAlpha()

setAlpha

public void setAlpha(int alpha)

write

public void write(com.anotherbigidea.io.OutStream out)
           throws java.io.IOException
Overrides:
write in class Color

writeWithAlpha

public void writeWithAlpha(com.anotherbigidea.io.OutStream out)
                    throws java.io.IOException
Overrides:
writeWithAlpha in class Color

equals

public boolean equals(AlphaColor color)

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

Overrides:
toString in class Color