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, item
protected Value red
protected Value green
protected Value blue
public short getPrimitiveType()
getPrimitiveType
in interface Value
getPrimitiveType
in class AbstractValue
public java.lang.String getCssText()
public Value getRed() throws DOMException
Value.getRed()
.getRed
in interface Value
getRed
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.public Value getGreen() throws DOMException
Value.getGreen()
.getGreen
in interface Value
getGreen
in class AbstractValue
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB
color value.public Value getBlue() throws DOMException
Value.getBlue()
.getBlue
in interface Value
getBlue
in class AbstractValue
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
Copyright © 2022 Apache Software Foundation. All Rights Reserved.