TPaint - the type of the paint needpublic abstract class SVGGradientBase<TPaint extends javafx.scene.paint.Paint> extends SVGElementBase<TPaint>
SVGElementBase.CoreAttribute, SVGElementBase.Matrix, SVGElementBase.XLinkAttribute| Constructor and Description |
|---|
SVGGradientBase(String name,
Attributes attributes,
SVGElementBase<?> parent,
SVGDataProvider dataProvider)
Creates a new instance of he element using the given attributes, parent and dataProvider.
|
| Modifier and Type | Method and Description |
|---|---|
List<javafx.scene.paint.Stop> |
getStops()
Gets the stops related to this gradient.
|
protected void |
initializeResult(TPaint paint,
SVGCssStyle style)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle) and allows to modify the result such as applying a style or transformations. |
createAndInitializeResult, createAndInitializeResult, createResult, endProcessing, getClipPath, getClipPath, getCssStyle, getCssStyleAndResolveInheritance, getCssStyleAndResolveInheritance, getOwnStyle, getPresentationCssStyle, getReferencedStyle, getResult, getResult, getTransformation, processCharacterData, startProcessinggetAttribute, getAttributes, getChildren, getDataProvider, getName, getParent, toStringpublic SVGGradientBase(String name, Attributes attributes, SVGElementBase<?> parent, SVGDataProvider dataProvider) throws IllegalArgumentException
name - value of the elementattributes - attributes of the elementparent - parent of the elementdataProvider - dataprovider to be usedIllegalArgumentException - if either value or dataProvider are nullpublic final List<javafx.scene.paint.Stop> getStops()
protected final void initializeResult(TPaint paint, SVGCssStyle style) throws SVGException
SVGElementBaseSVGElementBase.createAndInitializeResult(SVGCssStyle) and allows to modify the result such as applying a style or transformations.
The given inheritanceResolver should be used to retrieve such data, this simply is needed because some elements can actually be referenced e.g. SVGUse and their actual parent is not
the one from which the inherited style attributes can be retrieved.initializeResult in class SVGElementBase<TPaint extends javafx.scene.paint.Paint>paint - the result which should be modified.style - the SVGCssStyle to use when data is needed.SVGException - will be thrown when an error during modificationCopyright © 2016 Saxonia Systems AG. All rights reserved.