public class SVGDefs extends SVGElementBase<javafx.scene.Node>
SVGElementBase.CoreAttribute, SVGElementBase.Matrix, SVGElementBase.XLinkAttribute| Constructor and Description |
|---|
SVGDefs(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.Node |
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.Node node,
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, endProcessing, getClipPath, getClipPath, getCssStyle, getCssStyleAndResolveInheritance, getCssStyleAndResolveInheritance, getOwnStyle, getPresentationCssStyle, getReferencedStyle, getResult, getResult, getTransformation, processCharacterData, startProcessinggetAttribute, getAttributes, getChildren, getDataProvider, getName, getParent, toStringpublic SVGDefs(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.Node createResult(SVGCssStyle style) throws SVGException
SVGElementBasecreateResult in class SVGElementBase<javafx.scene.Node>style - the element to use when data is needed.SVGException - will be thrown when an error during creation occursprotected final void initializeResult(javafx.scene.Node node,
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<javafx.scene.Node>node - 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.