public class SVGDefinitions extends SVGElementBase<javafx.scene.Node>
| 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 |
|---|---|
boolean |
canConsumeResult()
Determines whether the result of this element will be requested or not.
|
protected javafx.scene.Node |
createResult(StyleSupplier styleSupplier)
Must be overwritten in the actual implementation to create a new result for this element based on the
information available.
|
void |
endProcessing()
Will be called when the end of the element was been reached and thus the processing is finished.
|
protected void |
initializeResult(javafx.scene.Node 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. |
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, getClipPath, getResult, getStyle, getStyleAndResolveInheritance, getTransformation, storeElementInDocumentDataProvidergetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getParent, getUnmodifiableChildren, toStringpublic static final String ELEMENT_NAME
public boolean rememberElement()
ElementBaserememberElement in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,javafx.scene.Node,SVGElementBase<?>,SVGElementBase<?>>public void startProcessing()
throws SAXException
ElementBasestartProcessing in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,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,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
endProcessing in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,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,javafx.scene.Node,SVGElementBase<?>,SVGElementBase<?>>protected final javafx.scene.Node createResult(StyleSupplier styleSupplier) throws SVGException
SVGElementBasecreateResult in class SVGElementBase<javafx.scene.Node>styleSupplier - the StyleSupplier to use when a SVGCssStyle is needed.SVGException - will be thrown when an error during creation occursprotected final void initializeResult(javafx.scene.Node node,
StyleSupplier styleSupplier)
throws SVGException
SVGElementBaseSVGElementBase.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.initializeResult in class SVGElementBase<javafx.scene.Node>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.