|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.color.model.GrayscaleColor
public class GrayscaleColor
This class implements a color specification in grayscale 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 |
GrayscaleColor(int thegray,
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 |
getGray()
Getter for the gray 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 GrayscaleColor(int thegray,
int theAlpha)
thegray - the gray 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 getAlpha()
getAlpha in interface ColorColor.getAlpha()public int getGray()
MAX_VALUE.
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 | |||||||||