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:
org.w3c.dom.css.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 org.w3c.dom.svg.SVGColor#getColorType().
 short getPaintType()
          DOM: Implements org.w3c.dom.svg.SVGPaint#getPaintType().
 java.lang.String getUri()
          DOM: Implements org.w3c.dom.svg.SVGPaint#getUri().
 void setModificationHandler(CSSOMSVGColor.ModificationHandler h)
          Sets the modification handler of this value.
 void setPaint(short paintType, java.lang.String uri, java.lang.String rgbColor, java.lang.String iccColor)
          DOM: Implements org.w3c.dom.svg.SVGPaint#setPaint(short,String,String,String).
 void setUri(java.lang.String uri)
          DOM: Implements org.w3c.dom.svg.SVGPaint#setUri(String).
 
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 org.w3c.dom.svg.SVGColor#getColorType().

Overrides:
getColorType in class CSSOMSVGColor

getPaintType

public short getPaintType()
DOM: Implements org.w3c.dom.svg.SVGPaint#getPaintType().


getUri

public java.lang.String getUri()
DOM: Implements org.w3c.dom.svg.SVGPaint#getUri().


setUri

public void setUri(java.lang.String uri)
DOM: Implements org.w3c.dom.svg.SVGPaint#setUri(String).


setPaint

public void setPaint(short paintType,
                     java.lang.String uri,
                     java.lang.String rgbColor,
                     java.lang.String iccColor)
DOM: Implements org.w3c.dom.svg.SVGPaint#setPaint(short,String,String,String).



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.