|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zuss.util.Color
public class Color
Represents a color.
Field Summary | |
---|---|
int |
blue
|
int |
green
|
int |
red
|
Constructor Summary | |
---|---|
Color(int value)
|
|
Color(int red,
int green,
int blue)
|
|
Color(java.lang.String rgb)
|
Method Summary | |
---|---|
Color |
add(java.lang.Object o)
Returns a color that adds this color and the given object. |
int |
compareTo(java.lang.Object o)
Compares with another object |
Color |
divide(java.lang.Object o)
Returns a color that divides this color with the given object. |
boolean |
equals(java.lang.Object o)
|
static Color |
getColor(java.lang.String rgb)
Returns the color of the given name. |
static Color |
getStandardColor(java.lang.String name)
Returns the starndard color, or null if it is not a standard color. |
int |
getValue()
Returns an integer representing this color |
int |
hashCode()
|
Color |
multiply(java.lang.Object o)
Returns a color that multiplies this color with the given object. |
Color |
negate()
Return a color that negates this color. |
Color |
subtract(java.lang.Object o)
Returns a color that subtracts this color and the given object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int red
public final int green
public final int blue
Constructor Detail |
---|
public Color(int value)
public Color(java.lang.String rgb)
public Color(int red, int green, int blue)
Method Detail |
---|
public static Color getColor(java.lang.String rgb)
public static Color getStandardColor(java.lang.String name)
public Color negate()
public Color add(java.lang.Object o)
public Color subtract(java.lang.Object o)
public Color multiply(java.lang.Object o)
public Color divide(java.lang.Object o)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |