org.apache.batik.css.dom
Class CSSOMSVGPaint

java.lang.Object
  extended by org.apache.batik.css.dom.CSSOMSVGColor
      extended by org.apache.batik.css.dom.CSSOMSVGPaint
All Implemented Interfaces:
RGBColor
Direct Known Subclasses:
CSSOMSVGComputedStyle.ComputedCSSPaintValue, CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue, SVGStylableElement.PresentationAttributePaintValue

public class CSSOMSVGPaint
extends CSSOMSVGColor

This class implements the SVGPaint interface.


Nested Class Summary
 class CSSOMSVGPaint.AbstractModificationHandler
          Provides an abstract implementation of a PaintModificationHandler.
static interface CSSOMSVGPaint.PaintModificationHandler
          To manage the modifications on a SVGPaint value.
 
Nested classes/interfaces inherited from class org.apache.batik.css.dom.CSSOMSVGColor
CSSOMSVGColor.AbstractComponent, CSSOMSVGColor.BlueComponent, CSSOMSVGColor.ColorNumber, CSSOMSVGColor.FloatComponent, CSSOMSVGColor.GreenComponent, CSSOMSVGColor.ModificationHandler, CSSOMSVGColor.RedComponent, CSSOMSVGColor.ValueProvider
 
Field Summary
 
Fields inherited from class org.apache.batik.css.dom.CSSOMSVGColor
blueComponent, greenComponent, handler, iccColors, redComponent, valueProvider
 
Constructor Summary
CSSOMSVGPaint(CSSOMSVGColor.ValueProvider vp)
          Creates a new CSSOMSVGPaint.
 
Method Summary
 short getColorType()
          DOM: Implements svg.SVGColor.
 short getPaintType()
          DOM: Implements svg.SVGPaint.
 String getUri()
          DOM: Implements svg.SVGPaint.
 void setModificationHandler(CSSOMSVGColor.ModificationHandler h)
          Sets the modification handler of this value.
 void setPaint(short paintType, String uri, String rgbColor, String iccColor)
          DOM: Implements svg.SVGPaint.
 void setUri(String uri)
          DOM: Implements svg.SVGPaint.
 
Methods inherited from class org.apache.batik.css.dom.CSSOMSVGColor
appendItem, clear, getBlue, getColorProfile, getColors, getCssText, getCssValueType, getGreen, getIccColor, getICCColor, getItem, getNumberOfItems, getRed, getRgbColor, getRGBColor, initialize, insertItemBefore, removeItem, replaceItem, setColor, setColorProfile, setCssText, setRGBColor, setRGBColorICCColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSOMSVGPaint

public CSSOMSVGPaint(CSSOMSVGColor.ValueProvider vp)
Creates a new CSSOMSVGPaint.

Method Detail

setModificationHandler

public void setModificationHandler(CSSOMSVGColor.ModificationHandler h)
Sets the modification handler of this value.

Overrides:
setModificationHandler in class CSSOMSVGColor

getColorType

public short getColorType()
DOM: Implements svg.SVGColor.

Overrides:
getColorType in class CSSOMSVGColor

getPaintType

public short getPaintType()
DOM: Implements svg.SVGPaint.


getUri

public String getUri()
DOM: Implements svg.SVGPaint.


setUri

public void setUri(String uri)
DOM: Implements svg.SVGPaint.


setPaint

public void setPaint(short paintType,
                     String uri,
                     String rgbColor,
                     String iccColor)
DOM: Implements svg.SVGPaint.



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.