Package com.kitfox.svg
Class TransformableElement
- java.lang.Object
-
- com.kitfox.svg.SVGElement
-
- com.kitfox.svg.TransformableElement
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Defs,RenderableElement
public abstract class TransformableElement extends SVGElement
Maintains bounding box for this element- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.geom.AffineTransformxform-
Fields inherited from class com.kitfox.svg.SVGElement
children, contexts, cssClass, diagram, dirty, id, ignorePresAttrib, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase
-
-
Constructor Summary
Constructors Constructor Description TransformableElement()Creates a new instance of BoundedElementTransformableElement(java.lang.String id, SVGElement parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.geom.Rectangle2DboundsToParent(java.awt.geom.Rectangle2D rect)protected voidbuild()Called by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.java.awt.geom.AffineTransformgetXForm()Fetches a copy of the cached AffineTransform.protected java.awt.ShapeshapeToParent(java.awt.Shape shape)booleanupdateTime(double curTime)Updates all attributes in this diagram associated with a time event.-
Methods inherited from class com.kitfox.svg.SVGElement
addAttribute, 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, setParent, swapChildren
-
-
-
-
Constructor Detail
-
TransformableElement
public TransformableElement()
Creates a new instance of BoundedElement
-
TransformableElement
public TransformableElement(java.lang.String id, SVGElement parent)
-
-
Method Detail
-
getXForm
public java.awt.geom.AffineTransform getXForm()
Fetches a copy of the cached AffineTransform. Note that this value will only be valid after the node has been updated.- Returns:
-
build
protected void build() throws SVGExceptionDescription copied from class:SVGElementCalled by internal processes to rebuild the geometry of this node from it's presentation attributes, style attributes and animated tracks.- Overrides:
buildin classSVGElement- Throws:
SVGException
-
shapeToParent
protected java.awt.Shape shapeToParent(java.awt.Shape shape)
-
boundsToParent
protected java.awt.geom.Rectangle2D boundsToParent(java.awt.geom.Rectangle2D rect)
-
updateTime
public boolean updateTime(double curTime) throws SVGExceptionUpdates all attributes in this diagram associated with a time event. Ie, all attributes with track information.- Specified by:
updateTimein classSVGElement- Returns:
- - true if this node has changed state as a result of the time update
- Throws:
SVGException
-
-