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 Shape |
getShape() |
protected Rectangle2D |
includeStrokeInBounds(Rectangle2D rect) |
abstract void |
render(Graphics2D g) |
protected void |
renderShape(Graphics2D g,
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 ShapeElement()
public abstract void render(Graphics2D g) throws SVGException
render in class RenderableElementSVGExceptionprotected void renderShape(Graphics2D g, Shape shape) throws SVGException
SVGExceptionprotected Rectangle2D includeStrokeInBounds(Rectangle2D rect) throws SVGException
SVGExceptionCopyright © 2011-2017 Kitfox Studios. All Rights Reserved.