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,
SVGElementBase<?> parent,
SVGDocumentDataProvider dataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SVGAttributeTypeRectangle.SVGTypeRectangle |
createBoundingBox()
Returns this elements bounding rectangle, which contains the entire shape.
|
protected void |
initializeResult(TShape shape,
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. |
canConsumeResult, endProcessing, processCharacterData, rememberElement, startProcessingcreateAndInitializeResult, createResult, getClipPath, getResult, getStyle, getStyleAndResolveInheritance, getTransformation, storeElementInDocumentDataProvidergetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getParent, getUnmodifiableChildren, toStringprotected SVGShapeBase(String name, Attributes attributes, SVGElementBase<?> parent, SVGDocumentDataProvider dataProvider)
name - value of the elementattributes - attributes of the elementparent - parent of the elementdataProvider - dataprovider to be usedprotected void initializeResult(TShape shape, StyleSupplier styleSupplier) 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.
Applies the css style the the element if possible.initializeResult in class SVGNodeBase<TShape extends javafx.scene.shape.Shape>shape - the result which should be modified.styleSupplier - the StyleSupplier to use when a SVGCssStyle is needed.SVGException - will be thrown when an error during modificationpublic abstract SVGAttributeTypeRectangle.SVGTypeRectangle createBoundingBox() throws SVGException
SVGException - when an error occurs during the creation of the bounding box.Copyright © 2016 Saxonia Systems AG. All rights reserved.