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, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase| Constructor and Description |
|---|
ShapeElement()
Creates a new instance of ShapeElement
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.awt.Shape |
getShape() |
protected java.awt.geom.Rectangle2D |
includeStrokeInBounds(java.awt.geom.Rectangle2D rect) |
abstract void |
render(java.awt.Graphics2D g) |
protected void |
renderShape(java.awt.Graphics2D g,
java.awt.Shape shape) |
beginLayer, build, finishLayer, getBoundingBoxboundsToParent, 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, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildrenprotected float strokeWidthScalar
public abstract void render(java.awt.Graphics2D g)
throws SVGException
render in class RenderableElementSVGExceptionprotected void renderShape(java.awt.Graphics2D g,
java.awt.Shape shape)
throws SVGException
SVGExceptionpublic abstract java.awt.Shape getShape()
protected java.awt.geom.Rectangle2D includeStrokeInBounds(java.awt.geom.Rectangle2D rect)
throws SVGException
SVGException