|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.css.value.AbstractImmutableValue | +--org.apache.batik.css.svg.ImmutableSVGColorValue
This class represents the immutable value used to implement a SVGColor.
Field Summary | |
protected CSSPrimitiveValue |
blue
The blue value |
protected java.lang.String |
colorProfile
The color profile. |
protected SVGCSSNumberList |
colors
The colors. |
protected short |
colorType
The SVG color type. |
protected CSSPrimitiveValue |
green
The green value |
protected CSSPrimitiveValue |
red
The red value |
Constructor Summary | |
ImmutableSVGColorValue(short ctype,
CSSPrimitiveValue r,
CSSPrimitiveValue g,
CSSPrimitiveValue b,
java.lang.String cprofile,
SVGCSSNumberList l)
Creates a new ImmutableSVGColorValue. |
Method Summary | |
ImmutableValue |
createReadOnlyCopy()
Returns a deep read-only copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
CSSPrimitiveValue |
getBlue()
This attribute is used for the blue value of the RGB color. |
java.lang.String |
getColorProfile()
Returns the color profile of this ICC color. |
SVGNumberList |
getColors()
Returns the colors in this ICC color. |
short |
getColorType()
Returns the color type, if this object represents a SVGColor. |
java.lang.String |
getCssText()
A string representation of the current value. |
CSSPrimitiveValue |
getGreen()
This attribute is used for the green value of the RGB color. |
SVGICCColor |
getICCColor()
Returns the RGBColor, if this object represents a SVGColor. |
short |
getPaintType()
Returns the paint type, if this object represents a SVGPaint. |
CSSPrimitiveValue |
getRed()
This attribute is used for the red value of the RGB color. |
RGBColor |
getRGBColor()
Returns the RGBColor, if this object represents a SVGColor. |
java.lang.String |
getUri()
Returns the URI of the paint, if this object represents a SVGPaint. |
void |
setColorProfile(java.lang.String colorProfile)
Sets the color profile of this ICC color. |
Methods inherited from class org.apache.batik.css.value.AbstractImmutableValue |
getCounterValue, getCssValueType, getFloatValue, getLength, getPrimitiveType, getRectValue, getRGBColorValue, getStringValue, item |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.css.value.ImmutableValue |
getCounterValue, getCssValueType, getFloatValue, getLength, getPrimitiveType, getRectValue, getRGBColorValue, getStringValue, item |
Field Detail |
protected short colorType
protected CSSPrimitiveValue red
protected CSSPrimitiveValue green
protected CSSPrimitiveValue blue
protected java.lang.String colorProfile
protected SVGCSSNumberList colors
Constructor Detail |
public ImmutableSVGColorValue(short ctype, CSSPrimitiveValue r, CSSPrimitiveValue g, CSSPrimitiveValue b, java.lang.String cprofile, SVGCSSNumberList l)
Method Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.public ImmutableValue createReadOnlyCopy()
createReadOnlyCopy
in interface ImmutableValue
public java.lang.String getCssText()
getCssText
in interface ImmutableValue
public short getPaintType()
getPaintType
in interface SVGImmutableValue
public java.lang.String getUri()
getUri
in interface SVGImmutableValue
public short getColorType()
getColorType
in interface SVGImmutableValue
public RGBColor getRGBColor()
getRGBColor
in interface SVGImmutableValue
public SVGICCColor getICCColor()
getICCColor
in interface SVGImmutableValue
public CSSPrimitiveValue getRed()
getRed
in interface RGBColor
public CSSPrimitiveValue getGreen()
getGreen
in interface RGBColor
public CSSPrimitiveValue getBlue()
getBlue
in interface RGBColor
public java.lang.String getColorProfile()
getColorProfile
in interface SVGICCColor
public void setColorProfile(java.lang.String colorProfile) throws DOMException
setColorProfile
in interface SVGICCColor
public SVGNumberList getColors()
getColors
in interface SVGICCColor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |