public class SVGStop extends SVGElementBase<javafx.scene.paint.Stop>
| 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.paint.Stop |
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.paint.Stop stop,
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.paint.Stop,SVGElementBase<?>,SVGElementBase<?>>public void startProcessing()
throws SAXException
ElementBasestartProcessing in class ElementBase<SVGAttributeType,SVGAttributeHolder,SVGDocumentDataProvider,javafx.scene.paint.Stop,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.paint.Stop,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,javafx.scene.paint.Stop,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.paint.Stop,SVGElementBase<?>,SVGElementBase<?>>SVGClipPath or SVGGroup, otherwise false.protected final javafx.scene.paint.Stop createResult(StyleSupplier styleSupplier) throws SVGException
PresentationAttributeMapper.STOP_COLOR and PresentationAttributeMapper.COLOR, however
the PresentationAttributeMapper.STOP_COLOR is preferred if both are present. Furthermore if an
PresentationAttributeMapper.STOP_OPACITY is present, then it will overwrite the opacity of the original color.createResult in class SVGElementBase<javafx.scene.paint.Stop>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.paint.Stop stop,
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.paint.Stop>stop - 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.