|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.color.model.RgbColor
public class RgbColor
This class implements a color specification in RGB 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 |
RgbColor(int red,
int green,
int blue,
int alpha)
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 |
getBlue()
Getter for the blue value. |
int |
getGreen()
Getter for the green value. |
int |
getRed()
Getter for the red 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 RgbColor(int red,
int green,
int blue,
int alpha)
red - the red channelgreen - the green channelblue - the blue channelalpha - 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 getRed()
MAX_VALUE.
public int getGreen()
MAX_VALUE.
public int getBlue()
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 | |||||||||