public class SVGRectangle extends SVGShapeBase<javafx.scene.shape.Rectangle>
SVGElementBase.CoreAttribute, SVGElementBase.Matrix, SVGElementBase.XLinkAttribute| Constructor and Description |
|---|
SVGRectangle(String name,
Attributes attributes,
SVGElementBase<?> parent,
SVGDataProvider dataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected javafx.scene.shape.Rectangle |
createResult(SVGCssStyle style)
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,
SVGCssStyle style)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle) and allows to modify the result such as applying a style or transformations. |
createAndInitializeResult, createAndInitializeResult, endProcessing, getClipPath, getClipPath, getCssStyle, getCssStyleAndResolveInheritance, getCssStyleAndResolveInheritance, getOwnStyle, getPresentationCssStyle, getReferencedStyle, getResult, getResult, getTransformation, processCharacterData, startProcessinggetAttribute, getAttributes, getChildren, getDataProvider, getName, getParent, toStringpublic SVGRectangle(String name, Attributes attributes, SVGElementBase<?> parent, SVGDataProvider dataProvider)
name - value of the elementattributes - attributes of the elementparent - parent of the elementdataProvider - dataprovider to be usedprotected final javafx.scene.shape.Rectangle createResult(SVGCssStyle style)
SVGElementBasecreateResult in class SVGElementBase<javafx.scene.shape.Rectangle>style - the element to use when data is needed.protected void initializeResult(javafx.scene.shape.Rectangle rect,
SVGCssStyle style)
throws SVGException
SVGElementBase.createAndInitializeResult(SVGCssStyle) 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.style - the SVGCssStyle to use when data is needed.SVGException - will be thrown when an error during modificationCopyright © 2016 Saxonia Systems AG. All rights reserved.