Class ICCColor
java.lang.Object
org.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.svg.ICCColor
- All Implemented Interfaces:
Value
This class represents an ICC color value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(float c) Appends a color to the list.floatgetColor(int i) Returns the color at the given index.Returns the color name.A string representation of the current value.shortImplementsValue.getCssValueType().intReturns the number of colors.toString()Methods inherited from class AbstractValue
createDOMException, getBlue, getBottom, getFloatValue, getGreen, getIdentifier, getLeft, getLength, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop, item
-
Field Details
-
ICC_COLOR_FUNCTION
- See Also:
-
colorProfile
The color profile. -
count
protected int countThe color count. -
colors
protected float[] colorsThe colors.
-
-
Constructor Details
-
ICCColor
Creates a new ICCColor.
-
-
Method Details
-
getCssValueType
public short getCssValueType()ImplementsValue.getCssValueType().- Specified by:
getCssValueTypein interfaceValue- Overrides:
getCssValueTypein classAbstractValue
-
getColorProfile
-
getNumberOfColors
Returns the number of colors.- Throws:
DOMException
-
getColor
Returns the color at the given index.- Throws:
DOMException
-
getCssText
A string representation of the current value. -
append
public void append(float c) Appends a color to the list. -
toString
-