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:
Runnable
This class dispatches the SVGLoadEvent event on a SVG document.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BridgeContext
The bridge context to use.protected Exception
The exception thrown.protected List
The listeners.protected GraphicsNode
The root graphics node.protected org.w3c.dom.svg.SVGDocument
The SVG document to give to the bridge.protected UpdateManager
The update manager.Fields inherited from class org.apache.batik.util.HaltingThread
beenHalted
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionSVGLoadEventDispatcher
(GraphicsNode gn, org.w3c.dom.svg.SVGDocument doc, BridgeContext bc, UpdateManager um) Creates a new SVGLoadEventDispatcher. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher.void
fireEvent
(EventDispatcher.Dispatcher dispatcher, Object event) Returns the exception, if any occured.Returns the update manager.void
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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
svgDocument
protected org.w3c.dom.svg.SVGDocument svgDocumentThe SVG document to give to the bridge. -
root
The root graphics node. -
bridgeContext
The bridge context to use. -
updateManager
The update manager. -
listeners
The listeners. -
exception
The exception thrown.
-
-
Constructor Details
-
SVGLoadEventDispatcher
public SVGLoadEventDispatcher(GraphicsNode gn, org.w3c.dom.svg.SVGDocument doc, BridgeContext bc, UpdateManager um) Creates a new SVGLoadEventDispatcher.
-
-
Method Details
-
run
public void run()Runs the dispatcher. -
getUpdateManager
Returns the update manager. -
getException
Returns the exception, if any occured. -
addSVGLoadEventDispatcherListener
Adds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher. -
removeSVGLoadEventDispatcherListener
Removes a SVGLoadEventDispatcherListener from this SVGLoadEventDispatcher. -
fireEvent
-