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.
- Version:
- $Id: ICCColor.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(float c) Appends a color to the list.float
getColor
(int i) Returns the color at the given index.Returns the color name.A string representation of the current value.short
ImplementsValue.getCssValueType()
.int
Returns the number of colors.toString()
Methods inherited from class org.apache.batik.css.engine.value.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:
getCssValueType
in interfaceValue
- Overrides:
getCssValueType
in classAbstractValue
-
getColorProfile
Returns the color name.- Throws:
DOMException
-
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
-