org.apache.batik.bridge

Class AnimatableGenericSVGBridge

public abstract class AnimatableGenericSVGBridge extends AnimatableSVGBridge implements GenericBridge, BridgeUpdateHandler, SVGContext

Abstract bridge class for animatable elements that do not produce a GraphicsNode.
Method Summary
voiddispose()
Rectangle2DgetBBox()
Returns the tight bounding box in current user space (i.e., after application of the transform attribute, if any) on the geometry of all contained graphics elements, exclusive of stroke-width and filter effects).
AffineTransformgetCTM()
Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the viewport coordinate system for the nearestViewportElement.
floatgetFontSize()
Returns the font-size on the associated element.
AffineTransformgetGlobalTransform()
Returns the global transformation matrix from the current element to the root.
floatgetPixelToMM()
Returns the size of a px CSS unit in millimeters.
floatgetPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters.
AffineTransformgetScreenTransform()
Returns the transform from the global transform space to pixels.
floatgetViewportHeight()
Returns the height of the viewport which directly contains the associated element.
floatgetViewportWidth()
Returns the width of the viewport which directly contains the associated element.
voidhandleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
voidhandleCSSEngineEvent(CSSEngineEvent evt)
voidhandleDOMAttrModifiedEvent(MutationEvent evt)
voidhandleDOMCharacterDataModified(MutationEvent evt)
voidhandleDOMNodeInsertedEvent(MutationEvent evt)
voidhandleDOMNodeRemovedEvent(MutationEvent evt)
voidhandleElement(BridgeContext ctx, Element e)
Invoked to handle an Element for a given BridgeContext.
voidhandleOtherAnimationChanged(String type)
voidsetScreenTransform(AffineTransform at)
Sets the transform to be used from the global transform space to pixels.

Method Detail

dispose

public void dispose()

getBBox

public Rectangle2D getBBox()
Returns the tight bounding box in current user space (i.e., after application of the transform attribute, if any) on the geometry of all contained graphics elements, exclusive of stroke-width and filter effects).

getCTM

public AffineTransform getCTM()
Returns the transformation matrix from current user units (i.e., after application of the transform attribute, if any) to the viewport coordinate system for the nearestViewportElement.

getFontSize

public float getFontSize()
Returns the font-size on the associated element.

getGlobalTransform

public AffineTransform getGlobalTransform()
Returns the global transformation matrix from the current element to the root.

getPixelToMM

public float getPixelToMM()
Returns the size of a px CSS unit in millimeters. This will be removed after next release.

See Also: getPixelUnitToMillimeter

getPixelUnitToMillimeter

public float getPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters.

getScreenTransform

public AffineTransform getScreenTransform()
Returns the transform from the global transform space to pixels.

getViewportHeight

public float getViewportHeight()
Returns the height of the viewport which directly contains the associated element.

getViewportWidth

public float getViewportWidth()
Returns the width of the viewport which directly contains the associated element.

handleAnimatedAttributeChanged

public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)

handleCSSEngineEvent

public void handleCSSEngineEvent(CSSEngineEvent evt)

handleDOMAttrModifiedEvent

public void handleDOMAttrModifiedEvent(MutationEvent evt)

handleDOMCharacterDataModified

public void handleDOMCharacterDataModified(MutationEvent evt)

handleDOMNodeInsertedEvent

public void handleDOMNodeInsertedEvent(MutationEvent evt)

handleDOMNodeRemovedEvent

public void handleDOMNodeRemovedEvent(MutationEvent evt)

handleElement

public void handleElement(BridgeContext ctx, Element e)
Invoked to handle an Element for a given BridgeContext. For example, see the SVGTitleElementBridge.

Parameters: ctx the bridge context to use e the element being handled

handleOtherAnimationChanged

public void handleOtherAnimationChanged(String type)

setScreenTransform

public void setScreenTransform(AffineTransform at)
Sets the transform to be used from the global transform space to pixels.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.