public abstract class RenderableElement extends TransformableElement
| Modifier and Type | Field and Description |
|---|---|
static int |
VECTOR_EFFECT_NON_SCALING_STROKE |
static int |
VECTOR_EFFECT_NONE |
children, cssClass, diagram, id, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase| Constructor and Description |
|---|
RenderableElement()
Creates a new instance of BoundedElement
|
RenderableElement(String id,
SVGElement parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginLayer(Graphics2D g)
Pushes transform stack, transforms to local coordinates and sets up
clipping mask.
|
protected void |
build()
Called by internal processes to rebuild the geometry of this node from
it's presentation attributes, style attributes and animated tracks.
|
protected abstract void |
doPick(Point2D point,
boolean boundingBox,
List<List<SVGElement>> retVec) |
protected abstract void |
doPick(Rectangle2D pickArea,
AffineTransform ltw,
boolean boundingBox,
List<List<SVGElement>> retVec) |
protected abstract void |
doRender(Graphics2D g) |
protected void |
finishLayer(Graphics2D g)
Restores transform and clipping values to the way they were before this
layer was drawn.
|
abstract Rectangle2D |
getBoundingBox() |
void |
render(Graphics2D g) |
boundsToParent, 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, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildrenpublic static final int VECTOR_EFFECT_NONE
public static final int VECTOR_EFFECT_NON_SCALING_STROKE
public RenderableElement()
public RenderableElement(String id, SVGElement parent)
protected void build()
throws SVGException
SVGElementbuild in class TransformableElementSVGExceptionpublic void render(Graphics2D g) throws SVGException
SVGExceptionprotected abstract void doRender(Graphics2D g) throws SVGException
SVGExceptionprotected abstract void doPick(Point2D point, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
SVGExceptionprotected abstract void doPick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
SVGExceptionpublic abstract Rectangle2D getBoundingBox() throws SVGException
SVGExceptionprotected void beginLayer(Graphics2D g) throws SVGException
g - Graphics contextSVGExceptionprotected void finishLayer(Graphics2D g)
g - Copyright © 2022. All rights reserved.