com.kitfox.svg
Class RenderableElement
java.lang.Object
com.kitfox.svg.SVGElement
com.kitfox.svg.TransformableElement
com.kitfox.svg.RenderableElement
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ImageSVG, ShapeElement
public abstract class RenderableElement
- extends TransformableElement
Maintains bounding box for this element
- Author:
- Mark McKay, Mark McKay
- See Also:
- Serialized Form
| Fields inherited from class com.kitfox.svg.SVGElement |
children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase |
|
Method Summary |
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 void |
finishLayer(Graphics2D g)
Restores transform and clipping values to the way they were before
this layer was drawn. |
abstract Rectangle2D |
getBoundingBox()
|
abstract void |
render(Graphics2D g)
|
| Methods inherited from class com.kitfox.svg.SVGElement |
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, removeAttribute, removeChild, setAttribute, setDiagram, swapChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VECTOR_EFFECT_NONE
public static final int VECTOR_EFFECT_NONE
- See Also:
- Constant Field Values
VECTOR_EFFECT_NON_SCALING_STROKE
public static final int VECTOR_EFFECT_NON_SCALING_STROKE
- See Also:
- Constant Field Values
RenderableElement
public RenderableElement()
- Creates a new instance of BoundedElement
RenderableElement
public RenderableElement(String id,
SVGElement parent)
build
protected void build()
throws SVGException
- Description copied from class:
SVGElement
- Called by internal processes to rebuild the geometry of this node
from it's presentation attributes, style attributes and animated tracks.
- Overrides:
build in class TransformableElement
- Throws:
SVGException
render
public abstract void render(Graphics2D g)
throws SVGException
- Throws:
SVGException
getBoundingBox
public abstract Rectangle2D getBoundingBox()
throws SVGException
- Throws:
SVGException
beginLayer
protected void beginLayer(Graphics2D g)
throws SVGException
- Pushes transform stack, transforms to local coordinates and sets up
clipping mask.
- Throws:
SVGException
finishLayer
protected void finishLayer(Graphics2D g)
- Restores transform and clipping values to the way they were before
this layer was drawn.
Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.