Package org.apache.batik.css.dom
Class CSSOMSVGPaint
- java.lang.Object
-
- org.apache.batik.css.dom.CSSOMSVGColor
-
- org.apache.batik.css.dom.CSSOMSVGPaint
-
- All Implemented Interfaces:
org.w3c.dom.css.CSSValue
,org.w3c.dom.css.RGBColor
,org.w3c.dom.svg.SVGColor
,org.w3c.dom.svg.SVGICCColor
,org.w3c.dom.svg.SVGNumberList
,org.w3c.dom.svg.SVGPaint
- Direct Known Subclasses:
CSSOMSVGComputedStyle.ComputedCSSPaintValue
,CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue
,SVGStylableElement.PresentationAttributePaintValue
public class CSSOMSVGPaint extends CSSOMSVGColor implements org.w3c.dom.svg.SVGPaint
This class implements theSVGPaint
interface.- Version:
- $Id: CSSOMSVGPaint.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
-
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
-
Fields inherited from interface org.w3c.dom.svg.SVGColor
SVG_COLORTYPE_CURRENTCOLOR, SVG_COLORTYPE_RGBCOLOR, SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, SVG_COLORTYPE_UNKNOWN
-
Fields inherited from interface org.w3c.dom.svg.SVGPaint
SVG_PAINTTYPE_CURRENTCOLOR, SVG_PAINTTYPE_NONE, SVG_PAINTTYPE_RGBCOLOR, SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, SVG_PAINTTYPE_UNKNOWN, SVG_PAINTTYPE_URI, SVG_PAINTTYPE_URI_CURRENTCOLOR, SVG_PAINTTYPE_URI_NONE, SVG_PAINTTYPE_URI_RGBCOLOR, SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR
-
-
Constructor Summary
Constructors Constructor Description CSSOMSVGPaint(CSSOMSVGColor.ValueProvider vp)
Creates a new CSSOMSVGPaint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getColorType()
DOM: ImplementsSVGColor.getColorType()
.short
getPaintType()
DOM: ImplementsSVGPaint.getPaintType()
.java.lang.String
getUri()
DOM: ImplementsSVGPaint.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: ImplementsSVGPaint.setPaint(short,String,String,String)
.void
setUri(java.lang.String uri)
DOM: ImplementsSVGPaint.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
-
-
-
-
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 classCSSOMSVGColor
-
getColorType
public short getColorType()
DOM: ImplementsSVGColor.getColorType()
.- Specified by:
getColorType
in interfaceorg.w3c.dom.svg.SVGColor
- Overrides:
getColorType
in classCSSOMSVGColor
-
getPaintType
public short getPaintType()
DOM: ImplementsSVGPaint.getPaintType()
.- Specified by:
getPaintType
in interfaceorg.w3c.dom.svg.SVGPaint
-
getUri
public java.lang.String getUri()
DOM: ImplementsSVGPaint.getUri()
.- Specified by:
getUri
in interfaceorg.w3c.dom.svg.SVGPaint
-
setUri
public void setUri(java.lang.String uri)
DOM: ImplementsSVGPaint.setUri(String)
.- Specified by:
setUri
in interfaceorg.w3c.dom.svg.SVGPaint
-
setPaint
public void setPaint(short paintType, java.lang.String uri, java.lang.String rgbColor, java.lang.String iccColor)
DOM: ImplementsSVGPaint.setPaint(short,String,String,String)
.- Specified by:
setPaint
in interfaceorg.w3c.dom.svg.SVGPaint
-
-