## org.apache.batik.css.engine.value.svg
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
`protected java.lang.String` `colorProfile` The color profile.
`protected float[]` `colors` The colors.
`protected int` `count` The color count.

Constructor Summary
`ICCColor(java.lang.String name)` Creates a new ICCColor.

Method Summary
`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.

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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### colorProfile

    protected java.lang.String colorProfile

  The color profile.

### count

    protected int count

  The color count.

### colors

    protected float[] colors

  The colors.

Constructor Detail

### ICCColor

    public ICCColor(java.lang.String name)

  Creates a new ICCColor.

Method Detail

### getCssValueType

    public short getCssValueType()

  Implements `Value.getCssValueType()`.

  Specified by:
    `getCssValueType` in interface `Value`
  Overrides:
    `getCssValueType` in class `AbstractValue`

### 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.

Copyright © 2004 Apache Software Foundation. All Rights Reserved.