public class SVGStyle extends SVGElementBase<Set<SVGCssStyle>>
| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_TYPE
Determines the string which indicates that the type is css.
|
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 Set<SVGCssStyle> |
createResult(SVGCssStyle ownStyle,
javafx.scene.transform.Transform ownTransform)
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(Set<SVGCssStyle> cssStyles,
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, getResult, getTransformation, startProcessinggetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getUnmodifiableChildren, toStringpublic static final String ELEMENT_NAME
public static final String CSS_TYPE
public boolean keepElement()
ElementBasekeepElement in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,Set<SVGCssStyle>,SVGElementBase<?>>public void processCharacterData(char[] ch,
int start,
int length)
throws SAXException
processCharacterData in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,Set<SVGCssStyle>,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 SVGElementBase<Set<SVGCssStyle>>SAXException - will be thrown when an error occurs during processingprotected final Set<SVGCssStyle> createResult(SVGCssStyle ownStyle, javafx.scene.transform.Transform ownTransform) throws SVGException
createResult in class SVGElementBase<Set<SVGCssStyle>>ownStyle - the SVGCssStyle to use, which represents this elements style which is already resolved of inheritance and collision.ownTransform - the Transform of this element.SVGException - will be thrown when an error during creation occursprotected void initializeResult(Set<SVGCssStyle> cssStyles, SVGCssStyle ownStyle, javafx.scene.transform.Transform ownTransform) throws SVGException
SVGElementBaseSVGElementBase.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.initializeResult in class SVGElementBase<Set<SVGCssStyle>>cssStyles - 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.