Class ICCColor
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- org.apache.batik.css.engine.value.svg.ICCColor
-
- All Implemented Interfaces:
Value
public class ICCColor extends AbstractValue
This class represents an ICC color value.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
colorProfile
The color profile.protected float[]
colors
The colors.protected int
count
The color count.static java.lang.String
ICC_COLOR_FUNCTION
-
Constructor Summary
Constructors Constructor Description ICCColor(java.lang.String name)
Creates a new ICCColor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(float c)
Appends a color to the list.float
getColor(int i)
Returns the color at the given index.java.lang.String
getColorProfile()
Returns the color name.java.lang.String
getCssText()
A string representation of the current value.short
getCssValueType()
ImplementsValue.getCssValueType()
.int
getNumberOfColors()
Returns the number of colors.java.lang.String
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 Detail
-
ICC_COLOR_FUNCTION
public static final java.lang.String ICC_COLOR_FUNCTION
- See Also:
- Constant Field Values
-
colorProfile
protected java.lang.String colorProfile
The color profile.
-
count
protected int count
The color count.
-
colors
protected float[] colors
The colors.
-
-
Method Detail
-
getCssValueType
public short getCssValueType()
ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
- Overrides:
getCssValueType
in classAbstractValue
-
getColorProfile
public java.lang.String getColorProfile() throws org.w3c.dom.DOMException
Returns the color name.- Throws:
org.w3c.dom.DOMException
-
getNumberOfColors
public int getNumberOfColors() throws org.w3c.dom.DOMException
Returns the number of colors.- Throws:
org.w3c.dom.DOMException
-
getColor
public float getColor(int i) throws org.w3c.dom.DOMException
Returns the color at the given index.- Throws:
org.w3c.dom.DOMException
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
append
public void append(float c)
Appends a color to the list.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-