public class SVGStop extends SVGElementBase<javafx.scene.paint.Stop>
SVGElementBase.CoreAttribute, SVGElementBase.Matrix, SVGElementBase.XLinkAttribute| Constructor and Description |
|---|
SVGStop(String name,
Attributes attributes,
SVGElementBase<?> parent,
SVGDataProvider dataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected javafx.scene.paint.Stop |
createResult(SVGCssStyle style)
Must be overwritten in the actual implementation to create a new result for this element based on the
information available.
|
protected void |
initializeResult(javafx.scene.paint.Stop stop,
SVGCssStyle inheritanceResolver)
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, endProcessing, getClipPath, getClipPath, getCssStyle, getCssStyleAndResolveInheritance, getCssStyleAndResolveInheritance, getOwnStyle, getPresentationCssStyle, getReferencedStyle, getResult, getResult, getTransformation, processCharacterData, startProcessinggetAttribute, getAttributes, getChildren, getDataProvider, getName, getParent, toStringpublic SVGStop(String name, Attributes attributes, SVGElementBase<?> parent, SVGDataProvider dataProvider)
name - value of the elementattributes - attributes of the elementparent - parent of the elementdataProvider - dataprovider to be usedprotected final javafx.scene.paint.Stop createResult(SVGCssStyle style) throws SVGException
SVGCssStyle.PresentationAttribute.STOP_COLOR and SVGCssStyle.PresentationAttribute.COLOR, however
the SVGCssStyle.PresentationAttribute.STOP_COLOR is preferred if both are present. Furthermore if an
SVGCssStyle.PresentationAttribute.STOP_OPACITY is present, then it will overwrite the opacity of the original color.createResult in class SVGElementBase<javafx.scene.paint.Stop>style - the element to use when data is needed.SVGException - will be thrown when an error during creation occursprotected final void initializeResult(javafx.scene.paint.Stop stop,
SVGCssStyle inheritanceResolver)
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<javafx.scene.paint.Stop>stop - the result which should be modified.inheritanceResolver - the SVGCssStyle to use when data is needed.SVGException - will be thrown when an error during modificationCopyright © 2016 Saxonia Systems AG. All rights reserved.