public class RGBColorValue extends AbstractValue
| Modifier and Type | Field and Description |
|---|---|
protected Value |
blue
The blue component.
|
protected Value |
green
The green component.
|
protected Value |
red
The red component.
|
| Constructor and Description |
|---|
RGBColorValue(Value r,
Value g,
Value b)
Creates a new RGBColorValue.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
createDOMException, getBottom, getCssValueType, getFloatValue, getIdentifier, getLeft, getLength, getListStyle, getRight, getSeparator, getStringValue, getTop, itemprotected Value red
protected Value green
protected Value blue
public short getPrimitiveType()
getPrimitiveType in interface ValuegetPrimitiveType in class AbstractValuepublic java.lang.String getCssText()
public Value getRed() throws org.w3c.dom.DOMException
Value.getRed().getRed in interface ValuegetRed in class AbstractValueorg.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 interface ValuegetGreen in class AbstractValueorg.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 interface ValuegetBlue in class AbstractValueorg.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.ObjectCopyright ? 2009 Apache Software Foundation. All Rights Reserved.