public class ICCColor extends AbstractValue
| Modifier and Type | Field and Description |
|---|---|
protected String |
colorProfile
The color profile.
|
protected float[] |
colors
The colors.
|
protected int |
count
The color count.
|
static String |
ICC_COLOR_FUNCTION |
| Constructor and Description |
|---|
ICCColor(String name)
Creates a new ICCColor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(float c)
Appends a color to the list.
|
float |
getColor(int i)
Returns the color at the given index.
|
String |
getColorProfile()
Returns the color name.
|
String |
getCssText()
A string representation of the current value.
|
short |
getCssValueType()
Implements
Value.getCssValueType(). |
int |
getNumberOfColors()
Returns the number of colors.
|
String |
toString() |
createDOMException, getBlue, getBottom, getFloatValue, getGreen, getIdentifier, getLeft, getLength, getListStyle, getPrimitiveType, getRed, getRight, getSeparator, getStringValue, getTop, itempublic static final String ICC_COLOR_FUNCTION
protected String colorProfile
protected int count
protected float[] colors
public ICCColor(String name)
public short getCssValueType()
Value.getCssValueType().getCssValueType in interface ValuegetCssValueType in class AbstractValuepublic String getColorProfile() throws DOMException
DOMExceptionpublic int getNumberOfColors()
throws DOMException
DOMExceptionpublic float getColor(int i)
throws DOMException
DOMExceptionpublic String getCssText()
public void append(float c)
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.