public abstract class ShapeElement extends RenderableElement
| Modifier and Type | Field and Description |
|---|---|
protected float |
strokeWidthScalar
This is necessary to get text elements to render the stroke the correct
width.
|
VECTOR_EFFECT_NON_SCALING_STROKE, VECTOR_EFFECT_NONEchildren, cssClass, diagram, id, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase| Constructor and Description |
|---|
ShapeElement()
Creates a new instance of ShapeElement
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPick(Point2D point,
boolean boundingBox,
List<List<SVGElement>> retVec) |
protected void |
doPick(Rectangle2D pickArea,
AffineTransform ltw,
boolean boundingBox,
List<List<SVGElement>> retVec) |
protected abstract void |
doRender(Graphics2D g) |
abstract Shape |
getShape() |
protected Rectangle2D |
includeStrokeInBounds(Rectangle2D rect) |
protected void |
renderShape(Graphics2D g,
Shape shape) |
beginLayer, build, finishLayer, getBoundingBox, renderboundsToParent, getXForm, shapeToParent, updateTimeaddAttribute, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getRoot, getStyle, getStyle, getStyle, getStyleAbsolute, getTagName, getXMLBase, hasAttribute, indexOfChild, lerp, loaderAddChild, loaderAddText, loaderEndElement, loaderStartElement, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildrenprotected float strokeWidthScalar
protected abstract void doRender(Graphics2D g) throws SVGException
doRender in class RenderableElementSVGExceptionprotected void doPick(Point2D point, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
doPick in class RenderableElementSVGExceptionprotected void doPick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
doPick in class RenderableElementSVGExceptionprotected void renderShape(Graphics2D g, Shape shape) throws SVGException
SVGExceptionpublic abstract Shape getShape()
protected Rectangle2D includeStrokeInBounds(Rectangle2D rect) throws SVGException
SVGExceptionCopyright © 2022. All rights reserved.