|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.batik.css.engine.value.AbstractValue
|
+--org.apache.batik.css.engine.value.RGBColorValue
This class represents RGB colors.
| Field Summary | |
protected Value |
blue
The blue component. |
protected Value |
green
The green component. |
protected Value |
red
The red component. |
| Constructor Summary | |
RGBColorValue(Value r,
Value g,
Value b)
Creates a new RGBColorValue. |
|
| Method Summary | |
Value |
getBlue()
Implements Value.getBlue(). |
java.lang.String |
getCssText()
A string representation of the current value. |
Value |
getGreen()
Implements Value.getGreen(). |
short |
getPrimitiveType()
The type of the value. |
Value |
getRed()
Implements Value.getRed(). |
java.lang.String |
toString()
Returns a printable representation of the color. |
| Methods inherited from class org.apache.batik.css.engine.value.AbstractValue |
createDOMException, getBottom, getCssValueType, getFloatValue, getIdentifier, getLeft, getLength, getListStyle, getRight, getSeparator, getStringValue, getTop, item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Value red
protected Value green
protected Value blue
| Constructor Detail |
public RGBColorValue(Value r,
Value g,
Value b)
| Method Detail |
public short getPrimitiveType()
getPrimitiveType in class AbstractValuepublic java.lang.String getCssText()
public Value getRed()
throws org.w3c.dom.DOMException
Value.getRed().getRed in class AbstractValueorg.apache.batik.css.engine.value.Valueorg.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.
public Value getGreen()
throws org.w3c.dom.DOMException
Value.getGreen().getGreen in class AbstractValueorg.apache.batik.css.engine.value.Valueorg.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.
public Value getBlue()
throws org.w3c.dom.DOMException
Value.getBlue().getBlue in class AbstractValueorg.apache.batik.css.engine.value.Valueorg.w3c.dom.DOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||