|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.Color
Cloneable color object.
| Constructor Summary | |
Color()
Creates a new instance of Color |
|
Color(java.awt.Color color)
Creates a new instance of Color from a java.awt.Color |
|
Color(int r,
int g,
int b)
Creates a new Color object with red, green, blue arguments. |
|
Color(int r,
int g,
int b,
int a)
Creates a new Color object with red, green, blue and alpha arguments. |
|
Color(java.lang.String colorString)
Creates a new Color object with red, green, blue arguments contained in a String. |
|
| Method Summary | |
java.lang.Object |
clone()
Gets a clone of this object. |
int |
getAlpha()
Returns the alpha component of the color. |
java.awt.Color |
getAwtColor()
Gets the comparable java.awt.Color object. |
int |
getBlue()
Returns the blue component of the color. |
int |
getGreen()
Returns the green component of the color. |
int |
getRed()
Returns the red component of the color. |
java.lang.String |
toHexString()
Returns a string representation of the color. |
java.lang.String |
toRBGString()
Returns a string representation of the color. |
java.lang.String |
toString()
Returns a string representation of the color. |
java.lang.String |
toWebHexString()
Returns a string representation of the color. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Color()
public Color(java.awt.Color color)
color - The java.awt.Color.
public Color(int r,
int g,
int b)
r - A value for the red color intensity (0-255).g - A value for the green color intensity (0-255).b - A value for the blue color intensity (0-255).
public Color(int r,
int g,
int b,
int a)
r - A value for the red color intensity (0-255).g - A value for the green color intensity (0-255).b - A value for the blue color intensity (0-255).a - A value for the alpha transparency.public Color(java.lang.String colorString)
colorString - The color value in string format.| Method Detail |
public java.lang.Object clone()
public java.awt.Color getAwtColor()
public java.lang.String toHexString()
public java.lang.String toRBGString()
public java.lang.String toString()
public java.lang.String toWebHexString()
public int getRed()
public int getGreen()
public int getBlue()
public int getAlpha()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||