|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.color.model.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 de.dante.extex.interpreter.context.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)
Check that the current color is identical to another 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()
|
java.lang.String |
toString()
Provide the string representation for the color. |
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 channelMethod Detail |
public boolean equals(java.lang.Object obj)
Color
equals
in interface Color
Object.equals(java.lang.Object)
public int getHue()
MAX_VALUE
.
public int getSaturation()
MAX_VALUE
.
public int getValue()
MAX_VALUE
.
public int getAlpha()
Color
getAlpha
in interface Color
Color.getAlpha()
public int hashCode()
Object.hashCode()
public java.lang.String toString()
Color
toString
in interface Color
Object.toString()
public java.lang.Object visit(ColorVisitor visitor, java.lang.Object argument) throws GeneralException
Color
visit
in interface Color
visitor
- the visitor to applyargument
- the argument for the visitor
GeneralException
- in case of an errorColor.visit(
de.dante.extex.color.ColorVisitor,
java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |