|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.persistence.Color
The Color class acts as a wrapper for Color Objects. To be type-
safe during XML reading and writing this class is required to identify Color
objects.
ColorParser| Constructor Summary | |
Color(int color)
Constructor specifying the color with an int. |
|
Color(java.lang.String colorString)
Constructor specifying the color with a String. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int |
getRGB()
Returns the RGB values of the color packed into one int. |
int |
hashCode()
|
java.lang.String |
toString()
Returns the appropriate string representation of a Color-
object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Color(int color)
int.
color - color specified in RGB-formatpublic Color(java.lang.String colorString)
String.
colorString - a textual representation of the desired color
(for example "white").| Method Detail |
public int getRGB()
int.
int.public java.lang.String toString()
Color-
object. The returned string can be used to restore the color instance.
Object.toString()public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||