|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.color.model.HsvColor
public class HsvColor
This class implements a color specification in HSV mode with an alpha channel.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Fields inherited from interface org.extex.color.Color |
|---|
MAX_VALUE |
| Constructor Summary | |
|---|---|
protected |
HsvColor(int thehue,
int thesaturation,
int thevalue,
int theAlpha)
Creates a new object. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getAlpha()
Getter for the alpha channel. |
int |
getHue()
Getter for the hue value. |
int |
getSaturation()
Getter for the saturation value. |
int |
getValue()
Getter for the value. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
java.lang.Object |
visit(ColorVisitor visitor,
java.lang.Object argument)
This method provides an entry point for the visitor pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
protected HsvColor(int thehue,
int thesaturation,
int thevalue,
int theAlpha)
thehue - the hue channelthesaturation - the saturation channelthevalue - the value channeltheAlpha - the alpha channel| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in interface Colorequals in class java.lang.Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Object.equals(java.lang.Object)public int getHue()
MAX_VALUE.
public int getSaturation()
MAX_VALUE.
public int getValue()
MAX_VALUE.
public int getAlpha()
getAlpha in interface ColorColor.getAlpha()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in interface ColortoString in class java.lang.ObjectObject.toString()
public java.lang.Object visit(ColorVisitor visitor,
java.lang.Object argument)
throws GeneralException
visit in interface Colorvisitor - the visitor to applyargument - the argument for the visitor
GeneralException - in case of an errorColor.visit(
org.extex.color.ColorVisitor,
java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||