public class SVGRectangle extends SVGShapeBase<javafx.scene.shape.Rectangle>
| 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 |
|---|---|
SVGAttributeTypeRectangle.SVGTypeRectangle |
createBoundingBox()
Returns this elements bounding rectangle, which contains the entire shape.
|
protected javafx.scene.shape.Rectangle |
createResult(StyleSupplier styleSupplier)
Must be overwritten in the actual implementation to create a new result for this element based on the
information available.
|
protected void |
initializeResult(javafx.scene.shape.Rectangle rect,
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, getClipPath, getResult, getStyle, getStyleAndResolveInheritance, getTransformation, storeElementInDocumentDataProvidergetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getParent, getUnmodifiableChildren, toStringpublic static final String ELEMENT_NAME
protected final javafx.scene.shape.Rectangle createResult(StyleSupplier styleSupplier) throws SVGException
SVGElementBasecreateResult in class SVGElementBase<javafx.scene.shape.Rectangle>styleSupplier - the StyleSupplier to use when a SVGCssStyle is needed.SVGException - will be thrown when an error during creation occursprotected void initializeResult(javafx.scene.shape.Rectangle rect,
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.
Applies the corner radius if any.initializeResult in class SVGShapeBase<javafx.scene.shape.Rectangle>rect - 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 SVGAttributeTypeRectangle.SVGTypeRectangle createBoundingBox() throws SVGException
SVGShapeBasecreateBoundingBox in class SVGShapeBase<javafx.scene.shape.Rectangle>SVGException - when an error occurs during the creation of the bounding box.Copyright © 2016 Saxonia Systems AG. All rights reserved.