public abstract class ShapeElement extends RenderableElement
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ShapeElement.StrokeCacheIndex |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<ShapeElement.StrokeCacheIndex,java.awt.BasicStroke> |
strokeCache |
protected float |
strokeWidthScalar
This is necessary to get text elements to render the stroke the correct
width.
|
VECTOR_EFFECT_NON_SCALING_STROKE, VECTOR_EFFECT_NONEchildrenChangeCounter, 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, getTranform, getXForm, shapeToParent, updateTimeaddAttribute, addChild, addChildren, buildPath, getChild, getChild, getChildren, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getRoot, getStyle, getStyle, getStyle, getStyleAbsolute, getTagName, getXMLBase, hasAttribute, hasChildren, indexOfChild, lerp, loaderAddChild, loaderAddText, loaderEndElement, loaderStartElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildrenprotected float strokeWidthScalar
protected static java.util.Map<ShapeElement.StrokeCacheIndex,java.awt.BasicStroke> strokeCache
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