org.apache.batik.bridge

Class AnimatableSVGBridge

public abstract class AnimatableSVGBridge extends AbstractSVGBridge implements SVGAnimationTargetContext

Abstract bridge class for those elements that can be animated.
Field Summary
protected BridgeContextctx
The bridge context to use for dynamic updates.
protected Elemente
The element that has been handled by this bridge.
protected HashMaptargetListeners
Map of CSS property names to LinkedLists of AnimationTargetListeners.
Method Summary
voidaddTargetListener(String pn, AnimationTargetListener l)
Adds a listener for changes to the given attribute value.
protected voidfireBaseAttributeListeners(String pn)
Fires the listeners registered for changes to the base value of the given CSS property.
voidremoveTargetListener(String pn, AnimationTargetListener l)
Removes a listener for changes to the given attribute value.

Field Detail

ctx

protected BridgeContext ctx
The bridge context to use for dynamic updates.

e

protected Element e
The element that has been handled by this bridge.

targetListeners

protected HashMap targetListeners
Map of CSS property names to LinkedLists of AnimationTargetListeners.

Method Detail

addTargetListener

public void addTargetListener(String pn, AnimationTargetListener l)
Adds a listener for changes to the given attribute value.

fireBaseAttributeListeners

protected void fireBaseAttributeListeners(String pn)
Fires the listeners registered for changes to the base value of the given CSS property.

removeTargetListener

public void removeTargetListener(String pn, AnimationTargetListener l)
Removes a listener for changes to the given attribute value.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.