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_NONE
children, 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 Shape |
getShape() |
protected Rectangle2D |
includeStrokeInBounds(Rectangle2D rect) |
abstract void |
render(Graphics2D g) |
protected void |
renderShape(Graphics2D g,
Shape shape) |
beginLayer, build, finishLayer, getBoundingBox
boundsToParent, getXForm, shapeToParent, updateTime
addAttribute, 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, swapChildren
protected float strokeWidthScalar
public ShapeElement()
public abstract void render(Graphics2D g) throws SVGException
render
in class RenderableElement
SVGException
protected void renderShape(Graphics2D g, Shape shape) throws SVGException
SVGException
protected Rectangle2D includeStrokeInBounds(Rectangle2D rect) throws SVGException
SVGException
Copyright ?? 2011-2019 Kitfox Studios. All Rights Reserved.