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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.anotherbigidea.flash.structs.Color
Direct Known Subclasses:
AlphaColor

public class Color
extends java.lang.Object

An RGB Color without alpha


Field Summary
protected  int blue
           
protected  int green
           
protected  int red
           
 
Constructor Summary
Color(com.anotherbigidea.io.InStream in)
           
Color(int red, int green, int blue)
           
 
Method Summary
 boolean equals(Color color)
           
 int getBlue()
           
 int getGreen()
           
 int getRed()
           
 void setBlue(int blue)
           
 void setGreen(int green)
           
 void setRed(int red)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 void write(com.anotherbigidea.io.OutStream out)
           
 void writeRGB(com.anotherbigidea.io.OutStream out)
           
 void writeWithAlpha(com.anotherbigidea.io.OutStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

red

protected int red

green

protected int green

blue

protected int blue
Constructor Detail

Color

public Color(int red,
             int green,
             int blue)

Color

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

getRed

public int getRed()

getGreen

public int getGreen()

getBlue

public int getBlue()

setRed

public void setRed(int red)

setGreen

public void setGreen(int green)

setBlue

public void setBlue(int blue)

write

public void write(com.anotherbigidea.io.OutStream out)
           throws java.io.IOException

equals

public boolean equals(Color color)

writeRGB

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