org.apache.batik.css.engine.value.svg12
Class ICCNamedColor

java.lang.Object
  extended by org.apache.batik.css.engine.value.AbstractValue
      extended by org.apache.batik.css.engine.value.svg12.ICCNamedColor
All Implemented Interfaces:
Value

public class ICCNamedColor
extends AbstractValue

This class represents an ICC named color value.


Field Summary
protected  String colorName
          The color name.
protected  String colorProfile
          The color profile.
static String ICC_NAMED_COLOR_FUNCTION
           
 
Constructor Summary
ICCNamedColor(String profileName, String colorName)
          Creates a new ICCNamedColor.
 
Method Summary
 String getColorName()
          Returns the color name
 String getColorProfile()
          Returns the color name.
 String getCssText()
          A string representation of the current value.
 short getCssValueType()
          Implements Value.getCssValueType().
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ICC_NAMED_COLOR_FUNCTION

public static final String ICC_NAMED_COLOR_FUNCTION
See Also:
Constant Field Values

colorProfile

protected String colorProfile
The color profile.


colorName

protected String colorName
The color name.

Constructor Detail

ICCNamedColor

public ICCNamedColor(String profileName,
                     String colorName)
Creates a new ICCNamedColor.

Method Detail

getCssValueType

public short getCssValueType()
Implements Value.getCssValueType().

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

getColorProfile

public String getColorProfile()
                       throws DOMException
Returns the color name.

Throws:
DOMException

getColorName

public String getColorName()
                    throws DOMException
Returns the color name

Throws:
DOMException

getCssText

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


toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017 Apache Software Foundation. All Rights Reserved.