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.
- Version:
- $Id: RGBColorValue.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlue()
ImplementsValue.getBlue()
.A string representation of the current value.getGreen()
ImplementsValue.getGreen()
.short
The type of the value.getRed()
ImplementsValue.getRed()
.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
-
Field Details
-
red
The red component. -
green
The green component. -
blue
The blue component.
-
-
Constructor Details
-
RGBColorValue
Creates a new RGBColorValue.
-
-
Method Details
-
getPrimitiveType
public short getPrimitiveType()The type of the value.- Specified by:
getPrimitiveType
in interfaceValue
- Overrides:
getPrimitiveType
in classAbstractValue
-
getCssText
A string representation of the current value. -
getRed
ImplementsValue.getRed()
.- Specified by:
getRed
in interfaceValue
- Overrides:
getRed
in classAbstractValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getGreen
ImplementsValue.getGreen()
.- Specified by:
getGreen
in interfaceValue
- Overrides:
getGreen
in classAbstractValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
getBlue
ImplementsValue.getBlue()
.- Specified by:
getBlue
in interfaceValue
- Overrides:
getBlue
in classAbstractValue
- Throws:
DOMException
- INVALID_ACCESS_ERR: Raised if the value doesn't contain a RGB color value.
-
toString
Returns a printable representation of the color.
-