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,
SVGElementBase<?> parent,
SVGDocumentDataProvider documentDataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConsumeResult()
Determines whether the result of this element will be requested or not.
|
void |
endProcessing()
Will be called when the end of the element was been reached and thus the processing is finished.
|
protected void |
initializeResult(TNode node,
StyleSupplier supplier)
This method will be called in the
SVGElementBase.createAndInitializeResult(StyleSupplier) and allows to modify the result such as applying a style or
transformations. |
void |
processCharacterData(char[] ch,
int start,
int length)
Will be called when character data (CDATA) is read for an element.
|
boolean |
rememberElement()
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 |
startProcessing()
Will be called when an element is started that represents this element.
|
createAndInitializeResult, createResult, getClipPath, getResult, getStyle, getStyleAndResolveInheritance, getTransformation, storeElementInDocumentDataProvidergetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getParent, getUnmodifiableChildren, toStringprotected SVGNodeBase(String name, Attributes attributes, SVGElementBase<?> parent, SVGDocumentDataProvider documentDataProvider)
name - the name of the elementattributes - attributes of the elementparent - parent of the elementdocumentDataProvider - dataprovider to be usedpublic boolean rememberElement()
ElementBaserememberElement in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>,SVGElementBase<?>>public void startProcessing()
throws SAXException
ElementBasestartProcessing in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>,SVGElementBase<?>>SAXException - will be thrown when an error occurs during processingpublic void processCharacterData(char[] ch,
int start,
int length)
throws SAXException
ElementBaseprocessCharacterData in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>,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 characterspublic void endProcessing()
throws SAXException
ElementBaseendProcessing in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>,SVGElementBase<?>>SAXException - will be thrown when an error occurs during processingpublic boolean canConsumeResult()
ElementBase.getResult().canConsumeResult in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,TNode extends javafx.scene.Node,SVGElementBase<?>,SVGElementBase<?>>SVGClipPath or SVGGroup, otherwise false.protected void initializeResult(TNode node, StyleSupplier supplier) throws SVGException
SVGElementBase.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 SVGElementBase<TNode extends javafx.scene.Node>node - the result which should be modified.supplier - 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.