org.apache.batik.swing.svg

Class SVGLoadEventDispatcher

public class SVGLoadEventDispatcher extends HaltingThread

This class dispatches the SVGLoadEvent event on a SVG document.
Field Summary
protected BridgeContextbridgeContext
The bridge context to use.
protected Exceptionexception
The exception thrown.
protected Listlisteners
The listeners.
protected GraphicsNoderoot
The root graphics node.
protected SVGDocumentsvgDocument
The SVG document to give to the bridge.
protected UpdateManagerupdateManager
The update manager.
Constructor Summary
SVGLoadEventDispatcher(GraphicsNode gn, SVGDocument doc, BridgeContext bc, UpdateManager um)
Creates a new SVGLoadEventDispatcher.
Method Summary
voidaddSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Adds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher.
voidfireEvent(EventDispatcher.Dispatcher dispatcher, Object event)
ExceptiongetException()
Returns the exception, if any occured.
UpdateManagergetUpdateManager()
Returns the update manager.
voidremoveSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Removes a SVGLoadEventDispatcherListener from this SVGLoadEventDispatcher.
voidrun()
Runs the dispatcher.

Field Detail

bridgeContext

protected BridgeContext bridgeContext
The bridge context to use.

exception

protected Exception exception
The exception thrown.

listeners

protected List listeners
The listeners.

root

protected GraphicsNode root
The root graphics node.

svgDocument

protected SVGDocument svgDocument
The SVG document to give to the bridge.

updateManager

protected UpdateManager updateManager
The update manager.

Constructor Detail

SVGLoadEventDispatcher

public SVGLoadEventDispatcher(GraphicsNode gn, SVGDocument doc, BridgeContext bc, UpdateManager um)
Creates a new SVGLoadEventDispatcher.

Method Detail

addSVGLoadEventDispatcherListener

public void addSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Adds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher.

fireEvent

public void fireEvent(EventDispatcher.Dispatcher dispatcher, Object event)

getException

public Exception getException()
Returns the exception, if any occured.

getUpdateManager

public UpdateManager getUpdateManager()
Returns the update manager.

removeSVGLoadEventDispatcherListener

public void removeSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Removes a SVGLoadEventDispatcherListener from this SVGLoadEventDispatcher.

run

public void run()
Runs the dispatcher.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.