TNode - type of the shape represented by this elementpublic abstract class SVGNodeBase<TNode extends javafx.scene.Node> extends SVGElementBase<TNode>
| Modifier | Constructor and Description |
|---|---|
protected |
SVGNodeBase(String name,
Attributes attributes,
SVGDocumentDataProvider documentDataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
initializeResult(TNode result,
SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) and allows to modify the result such as applying a style or transformations. |
boolean |
keepElement()
Determines if the element will be kept, meaning it will be kept in memory and is available as a parent for all its children.
|
void |
processCharacterData(char[] ch,
int start,
int length)
Will be called when character data (CDATA) is read for an element.
|
createAndInitializeResult, createResult, endProcessing, getResult, getTransformation, startProcessinggetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getUnmodifiableChildren, toStringprotected SVGNodeBase(String name, Attributes attributes, SVGDocumentDataProvider documentDataProvider)
name - the name of the elementattributes - attributes of the elementdocumentDataProvider - dataprovider to be usedpublic boolean keepElement()
ElementBasekeepElement in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>>public void processCharacterData(char[] ch,
int start,
int length)
throws SAXException
ElementBaseprocessCharacterData in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>>ch - The characters.start - The start position in the character array.length - The number of characters to use from the
character array.SAXException - will be thrown when an error occurs during processing the charactersprotected void initializeResult(TNode result, SVGCssStyle ownStyle, javafx.scene.transform.Transform ownTransform) throws SVGException
SVGElementBase.createAndInitializeResult(SVGCssStyle, Transform) 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 and add clipPath if available.initializeResult in class SVGElementBase<TNode extends javafx.scene.Node>result - the result which should be modified.ownStyle - the SVGCssStyle to use, which represents this elements style which is already resolved of inheritance and collisionownTransform - the Transform of this element.SVGException - will be thrown when an error during modificationCopyright © 2017 Saxonia Systems AG. All rights reserved.