org.apache.batik.css.svg
Class ImmutableSVGPaintValue

java.lang.Object
  |
  +--org.apache.batik.css.value.AbstractImmutableValue
        |
        +--org.apache.batik.css.svg.ImmutableSVGColorValue
              |
              +--org.apache.batik.css.svg.ImmutableSVGPaintValue
All Implemented Interfaces:
ImmutableValue, RGBColor, SVGICCColor, SVGImmutableValue

public class ImmutableSVGPaintValue
extends ImmutableSVGColorValue

This class represents the immutable value used to implement a SVGPaint.


Field Summary
protected  java.lang.String uri
          The URI of this paint.
 
Fields inherited from class org.apache.batik.css.svg.ImmutableSVGColorValue
blue, colorProfile, colors, colorType, green, red
 
Constructor Summary
ImmutableSVGPaintValue(short ctype, CSSPrimitiveValue r, CSSPrimitiveValue g, CSSPrimitiveValue b, java.lang.String cprofile, SVGCSSNumberList l, java.lang.String url)
          Creates a new ImmutableSVGPaintValue.
 
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.
 java.lang.String getCssText()
          A string representation of the current value.
 short getPaintType()
          Returns the paint type, if this object represents a SVGPaint.
 java.lang.String getUri()
          Returns the URI of the paint, if this object represents a SVGPaint.
 
Methods inherited from class org.apache.batik.css.svg.ImmutableSVGColorValue
getBlue, getColorProfile, getColors, getColorType, getGreen, getICCColor, getRed, getRGBColor, setColorProfile
 
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

uri

protected java.lang.String uri
The URI of this paint.
Constructor Detail

ImmutableSVGPaintValue

public ImmutableSVGPaintValue(short ctype,
                              CSSPrimitiveValue r,
                              CSSPrimitiveValue g,
                              CSSPrimitiveValue b,
                              java.lang.String cprofile,
                              SVGCSSNumberList l,
                              java.lang.String url)
Creates a new ImmutableSVGPaintValue.
Method Detail

getPaintType

public short getPaintType()
Returns the paint type, if this object represents a SVGPaint.
Overrides:
getPaintType in class ImmutableSVGColorValue

getUri

public java.lang.String getUri()
Returns the URI of the paint, if this object represents a SVGPaint.
Overrides:
getUri in class ImmutableSVGColorValue

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class ImmutableSVGColorValue
Parameters:
obj - the reference object with which to compare.

createReadOnlyCopy

public ImmutableValue createReadOnlyCopy()
Returns a deep read-only copy of this object.
Overrides:
createReadOnlyCopy in class ImmutableSVGColorValue

getCssText

public java.lang.String getCssText()
A string representation of the current value.
Overrides:
getCssText in class ImmutableSVGColorValue


Copyright © 2001 Apache Software Foundation. All Rights Reserved.