com.kitfox.svg
Class RenderableElement

java.lang.Object
  extended by com.kitfox.svg.SVGElement
      extended by com.kitfox.svg.TransformableElement
          extended by com.kitfox.svg.RenderableElement
All Implemented Interfaces:
java.io.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

Field Summary
static int VECTOR_EFFECT_NON_SCALING_STROKE
           
static int VECTOR_EFFECT_NONE
           
 
Fields inherited from class com.kitfox.svg.SVGElement
children, cssClass, diagram, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase
 
Constructor Summary
RenderableElement()
          Creates a new instance of BoundedElement
RenderableElement(java.lang.String id, SVGElement parent)
           
 
Method Summary
protected  void beginLayer(java.awt.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(java.awt.Graphics2D g)
          Restores transform and clipping values to the way they were before this layer was drawn.
abstract  java.awt.geom.Rectangle2D getBoundingBox()
           
abstract  void render(java.awt.Graphics2D g)
           
 
Methods inherited from class com.kitfox.svg.TransformableElement
boundsToParent, shapeToParent, updateTime
 
Methods inherited from class com.kitfox.svg.SVGElement
addAttribute, buildPath, getChild, getChildren, getId, getInlineAttributes, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RenderableElement

public RenderableElement()
Creates a new instance of BoundedElement


RenderableElement

public RenderableElement(java.lang.String id,
                         SVGElement parent)
Method Detail

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(java.awt.Graphics2D g)
                     throws SVGException
Throws:
SVGException

getBoundingBox

public abstract java.awt.geom.Rectangle2D getBoundingBox()
                                                  throws SVGException
Throws:
SVGException

beginLayer

protected void beginLayer(java.awt.Graphics2D g)
                   throws SVGException
Pushes transform stack, transforms to local coordinates and sets up clipping mask.

Throws:
SVGException

finishLayer

protected void finishLayer(java.awt.Graphics2D g)
Restores transform and clipping values to the way they were before this layer was drawn.