com.kitfox.svg
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, shapeToParent, updateTime
addAttribute, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, loaderAddChild, loaderAddText, loaderEndElement, loaderStartElement, nextFloat, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeChild, setAttribute, swapChildren
protected float strokeWidthScalar
public abstract void render(Graphics2D g) throws SVGException
render
in class RenderableElement
SVGException
protected void renderShape(Graphics2D g, Shape shape) throws SVGException
SVGException
public abstract Shape getShape()
protected Rectangle2D includeStrokeInBounds(Rectangle2D rect) throws SVGException
SVGException