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(javafx.scene.shape.Rectangle rectangle)
Returns the bounding box of the given shape
|
protected javafx.scene.shape.Rectangle |
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.
|
protected void |
initializeResult(javafx.scene.shape.Rectangle 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, endProcessing, getResult, getTransformation, startProcessinggetAttributeHolder, getAttributes, getDocumentDataProvider, getName, getUnmodifiableChildren, toStringpublic static final String ELEMENT_NAME
protected final javafx.scene.shape.Rectangle createResult(SVGCssStyle ownStyle, javafx.scene.transform.Transform ownTransform) throws SVGException
SVGElementBasecreateResult in class SVGElementBase<javafx.scene.shape.Rectangle>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(javafx.scene.shape.Rectangle 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.
Applies the corner radius if any.initializeResult in class SVGShapeBase<javafx.scene.shape.Rectangle>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 modificationpublic SVGAttributeTypeRectangle.SVGTypeRectangle createBoundingBox(javafx.scene.shape.Rectangle rectangle) throws SVGException
SVGShapeBasecreateBoundingBox in class SVGShapeBase<javafx.scene.shape.Rectangle>rectangle - 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.