Package org.apache.batik.swing.svg
Class SVGLoadEventDispatcher
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.batik.util.HaltingThread
-
- org.apache.batik.swing.svg.SVGLoadEventDispatcher
-
- All Implemented Interfaces:
java.lang.Runnable
public class SVGLoadEventDispatcher extends HaltingThread
This class dispatches the SVGLoadEvent event on a SVG document.
-
-
Field Summary
Fields Modifier and Type Field Description protected BridgeContext
bridgeContext
The bridge context to use.protected java.lang.Exception
exception
The exception thrown.protected java.util.List
listeners
The listeners.protected GraphicsNode
root
The root graphics node.protected org.w3c.dom.svg.SVGDocument
svgDocument
The SVG document to give to the bridge.protected UpdateManager
updateManager
The update manager.-
Fields inherited from class org.apache.batik.util.HaltingThread
beenHalted
-
-
Constructor Summary
Constructors Constructor Description SVGLoadEventDispatcher(GraphicsNode gn, org.w3c.dom.svg.SVGDocument doc, BridgeContext bc, UpdateManager um)
Creates a new SVGLoadEventDispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Adds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher.void
fireEvent(EventDispatcher.Dispatcher dispatcher, java.lang.Object event)
java.lang.Exception
getException()
Returns the exception, if any occured.UpdateManager
getUpdateManager()
Returns the update manager.void
removeSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Removes a SVGLoadEventDispatcherListener from this SVGLoadEventDispatcher.void
run()
Runs the dispatcher.-
Methods inherited from class org.apache.batik.util.HaltingThread
clearHalted, halt, haltThread, haltThread, hasBeenHalted, hasBeenHalted, isHalted
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
svgDocument
protected org.w3c.dom.svg.SVGDocument svgDocument
The SVG document to give to the bridge.
-
root
protected GraphicsNode root
The root graphics node.
-
bridgeContext
protected BridgeContext bridgeContext
The bridge context to use.
-
updateManager
protected UpdateManager updateManager
The update manager.
-
listeners
protected java.util.List listeners
The listeners.
-
exception
protected java.lang.Exception exception
The exception thrown.
-
-
Constructor Detail
-
SVGLoadEventDispatcher
public SVGLoadEventDispatcher(GraphicsNode gn, org.w3c.dom.svg.SVGDocument doc, BridgeContext bc, UpdateManager um)
Creates a new SVGLoadEventDispatcher.
-
-
Method Detail
-
run
public void run()
Runs the dispatcher.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
getUpdateManager
public UpdateManager getUpdateManager()
Returns the update manager.
-
getException
public java.lang.Exception getException()
Returns the exception, if any occured.
-
addSVGLoadEventDispatcherListener
public void addSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Adds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher.
-
removeSVGLoadEventDispatcherListener
public void removeSVGLoadEventDispatcherListener(SVGLoadEventDispatcherListener l)
Removes a SVGLoadEventDispatcherListener from this SVGLoadEventDispatcher.
-
fireEvent
public void fireEvent(EventDispatcher.Dispatcher dispatcher, java.lang.Object event)
-
-