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.
- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BridgeContextThe bridge context to use.(package private) static EventDispatcher.Dispatcher(package private) static EventDispatcher.Dispatcherprotected ExceptionThe exception thrown.(package private) static EventDispatcher.Dispatcherprotected ListThe listeners.protected GraphicsNodeThe root graphics node.(package private) static EventDispatcher.Dispatcherprotected org.w3c.dom.svg.SVGDocumentThe SVG document to give to the bridge.protected UpdateManagerThe update manager.Fields inherited from class HaltingThread
beenHaltedFields inherited from class 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 TypeMethodDescriptionvoidAdds a SVGLoadEventDispatcherListener to this SVGLoadEventDispatcher.voidfireEvent(EventDispatcher.Dispatcher dispatcher, Object event) Returns the exception, if any occured.Returns the update manager.voidRemoves a SVGLoadEventDispatcherListener from this SVGLoadEventDispatcher.voidrun()Runs the dispatcher.Methods inherited from class HaltingThread
clearHalted, halt, haltThread, haltThread, hasBeenHalted, hasBeenHalted, isHaltedMethods inherited from class Thread
activeCount, checkAccess, clone, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, 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. -
startedDispatcher
-
completedDispatcher
-
cancelledDispatcher
-
failedDispatcher
-
-
Constructor Details
-
SVGLoadEventDispatcher
public SVGLoadEventDispatcher(GraphicsNode gn, org.w3c.dom.svg.SVGDocument doc, BridgeContext bc, UpdateManager um) Creates a new SVGLoadEventDispatcher.
-
-
Method Details
-
run
-
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
-