java.lang.Object
java.lang.Thread
io.sf.carte.echosvg.util.HaltingThread
io.sf.carte.echosvg.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
Modifier and TypeFieldDescriptionprotected BridgeContext
The bridge context to use.protected Exception
The exception thrown.The listeners.protected GraphicsNode
The root graphics node.protected SVGDocument
The SVG document to give to the bridge.protected UpdateManager
The update manager.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionSVGLoadEventDispatcher
(GraphicsNode gn, 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 io.sf.carte.echosvg.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
The 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
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
-