Class RGBColorValue
java.lang.Object
org.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.RGBColorValue
- All Implemented Interfaces:
Value
This class represents RGB colors.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlue()ImplementsValue.getBlue().A string representation of the current value.getGreen()ImplementsValue.getGreen().shortThe type of the value.getRed()ImplementsValue.getRed().toString()Returns a printable representation of the color.Methods inherited from class AbstractValue
createDOMException, getBottom, getCssValueType, getFloatValue, getIdentifier, getLeft, getLength, getListStyle, getRight, getSeparator, getStringValue, getTop, item
-
Field Details
-
red
The red component. -
green
The green component. -
blue
The blue component.
-
-
Constructor Details
-
RGBColorValue
-
-
Method Details
-
getPrimitiveType
public short getPrimitiveType()The type of the value.- Specified by:
getPrimitiveTypein interfaceValue- Overrides:
getPrimitiveTypein classAbstractValue
-
getCssText
A string representation of the current value. -
getRed
ImplementsValue.getRed().- Specified by:
getRedin interfaceValue- Overrides:
getRedin classAbstractValue- Throws:
DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getGreen
ImplementsValue.getGreen().- Specified by:
getGreenin interfaceValue- Overrides:
getGreenin classAbstractValue- Throws:
DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getBlue
ImplementsValue.getBlue().- Specified by:
getBluein interfaceValue- Overrides:
getBluein classAbstractValue- Throws:
DOMException- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
toString
-