Class ICCNamedColor
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- 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.- Version:
- $Id: ICCNamedColor.java 1617286 2014-08-11 14:03:51Z lbernardo $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
colorName
The color name.protected java.lang.String
colorProfile
The color profile.static java.lang.String
ICC_NAMED_COLOR_FUNCTION
-
Constructor Summary
Constructors Constructor Description ICCNamedColor(java.lang.String profileName, java.lang.String colorName)
Creates a new ICCNamedColor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getColorName()
Returns the color namejava.lang.String
getColorProfile()
Returns the color name.java.lang.String
getCssText()
A string representation of the current value.short
getCssValueType()
ImplementsValue.getCssValueType()
.java.lang.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
-
-
-
-
Field Detail
-
ICC_NAMED_COLOR_FUNCTION
public static final java.lang.String ICC_NAMED_COLOR_FUNCTION
- See Also:
- Constant Field Values
-
colorProfile
protected java.lang.String colorProfile
The color profile.
-
colorName
protected java.lang.String colorName
The color name.
-
-
Method Detail
-
getCssValueType
public short getCssValueType()
ImplementsValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceValue
- Overrides:
getCssValueType
in classAbstractValue
-
getColorProfile
public java.lang.String getColorProfile() throws org.w3c.dom.DOMException
Returns the color name.- Throws:
org.w3c.dom.DOMException
-
getColorName
public java.lang.String getColorName() throws org.w3c.dom.DOMException
Returns the color name- Throws:
org.w3c.dom.DOMException
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-