|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.color.model.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 de.dante.extex.interpreter.context.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)
Check that the current color is identical to another 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()
|
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 RgbColor(int red, int green, int blue, int alpha)
red
- the red channelgreen
- the green channelblue
- the blue channelalpha
- the alpha channelMethod Detail |
public boolean equals(java.lang.Object obj)
Color
equals
in interface Color
Object.equals(java.lang.Object)
public int getRed()
MAX_VALUE
.
public int getGreen()
MAX_VALUE
.
public int getBlue()
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 |