TShape - type of the shape represented by this elementpublic abstract class SVGShapeBase<TShape extends javafx.scene.shape.Shape> extends SVGNodeBase<TShape>
| Modifier | Constructor and Description |
|---|---|
protected |
SVGShapeBase(String name,
Attributes attributes,
SVGDocumentDataProvider dataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract SVGAttributeTypeRectangle.SVGTypeRectangle |
createBoundingBox(TShape shape)
Returns the bounding box of the given shape
|
protected void |
initializeResult(TShape 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. |
keepElement, processCharacterDatacreateAndInitializeResult, createResult, endProcessing, getResult, getTransformation, startProcessinggetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getUnmodifiableChildren, toStringprotected SVGShapeBase(String name, Attributes attributes, SVGDocumentDataProvider dataProvider)
name - value of the elementattributes - attributes of the elementdataProvider - dataprovider to be usedprotected void initializeResult(TShape 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.
Applies the css style the the element if possible.initializeResult in class SVGNodeBase<TShape extends javafx.scene.shape.Shape>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 modificationprotected abstract SVGAttributeTypeRectangle.SVGTypeRectangle createBoundingBox(TShape shape) throws SVGException
shape - the Shape to use.SVGAttributeTypeRectangle.SVGTypeRectangle.SVGException - if an error occurs during creation of the bounding box.Copyright © 2017 Saxonia Systems AG. All rights reserved.