public class SVGUse extends SVGNodeBase<javafx.scene.Group>
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_NAME
Contains the name of this element in an svg file, used to identify the element when parsing.
|
| Modifier and Type | Method and Description |
|---|---|
protected javafx.scene.Group |
createResult(StyleSupplier styleSupplier)
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.Group node,
StyleSupplier styleSupplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
canConsumeResult, endProcessing, processCharacterData, rememberElement, startProcessingcreateAndInitializeResult, getClipPath, getResult, getStyle, getStyleAndResolveInheritance, getTransformation, storeElementInDocumentDataProvidergetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getParent, getUnmodifiableChildren, toStringpublic static final String ELEMENT_NAME
protected javafx.scene.Group createResult(StyleSupplier styleSupplier) throws SVGException
createResult in class SVGElementBase<javafx.scene.Group>styleSupplier - the StyleSupplier to use when a SVGCssStyle is needed.SVGException - if the XLinkAttributeMapper.XLINK_HREF is empty or null.protected void initializeResult(javafx.scene.Group node,
StyleSupplier styleSupplier)
throws SVGException
SVGNodeBaseSVGElementBase.createAndInitializeResult(StyleSupplier) 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.Will apply the transformation to the element.initializeResult in class SVGNodeBase<javafx.scene.Group>node - the result which should be modified.styleSupplier - the StyleSupplier to use when a SVGCssStyle is needed.SVGException - will be thrown when an error during modificationCopyright © 2016 Saxonia Systems AG. All rights reserved.