Valuepublic class ICCColor extends AbstractValue
| 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 | Description |
|---|---|
ICCColor(java.lang.String name) |
Creates a new ICCColor.
|
| 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() |
Implements
Value.getCssValueType(). |
int |
getNumberOfColors() |
Returns the number of colors.
|
java.lang.String |
toString() |
createDOMException, getBlue, getBottom, getFloatValue, getGreen, getIdentifier, getLeft, getLength, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop, itempublic static final java.lang.String ICC_COLOR_FUNCTION
protected java.lang.String colorProfile
protected int count
protected float[] colors
public short getCssValueType()
Value.getCssValueType().getCssValueType in interface ValuegetCssValueType in class AbstractValuepublic java.lang.String getColorProfile()
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic int getNumberOfColors()
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic float getColor(int i)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic java.lang.String getCssText()
public void append(float c)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2018 Apache Software Foundation. All Rights Reserved.