org.apache.batik.css.engine.value.svg

Class ICCColor

public class ICCColor extends AbstractValue

This class represents an ICC color value.
Field Summary
protected StringcolorProfile
The color profile.
protected float[]colors
The colors.
protected intcount
The color count.
Constructor Summary
ICCColor(String name)
Creates a new ICCColor.
Method Summary
voidappend(float c)
Appends a color to the list.
floatgetColor(int i)
Returns the color at the given index.
StringgetColorProfile()
Returns the color name.
StringgetCssText()
A string representation of the current value.
shortgetCssValueType()
Implements {@link org.apache.batik.css.engine.value.Value#getCssValueType()}.
intgetNumberOfColors()
Returns the number of colors.

Field Detail

colorProfile

protected String colorProfile
The color profile.

colors

protected float[] colors
The colors.

count

protected int count
The color count.

Constructor Detail

ICCColor

public ICCColor(String name)
Creates a new ICCColor.

Method Detail

append

public void append(float c)
Appends a color to the list.

getColor

public float getColor(int i)
Returns the color at the given index.

getColorProfile

public String getColorProfile()
Returns the color name.

getCssText

public String getCssText()
A string representation of the current value.

getCssValueType

public short getCssValueType()
Implements {@link org.apache.batik.css.engine.value.Value#getCssValueType()}.

getNumberOfColors

public int getNumberOfColors()
Returns the number of colors.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.