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(). |
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(). |
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 String getCssText()
public Value getRed() throws DOMException
Value.getRed().getRed in interface ValuegetRed in class AbstractValueDOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.public Value getGreen() throws DOMException
Value.getGreen().getGreen in interface ValuegetGreen in class AbstractValueDOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.public Value getBlue() throws DOMException
Value.getBlue().getBlue in interface ValuegetBlue in class AbstractValueDOMException - INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.Copyright © 2000–2017 Apache Software Foundation. All rights reserved.