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
FieldsModifier and TypeFieldDescriptionprotected BridgeContextThe bridge context to use.protected ExceptionThe exception thrown.The listeners.protected GraphicsNodeThe root graphics node.protected SVGDocumentThe SVG document to give to the bridge.protected UpdateManagerThe update manager.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionSVGLoadEventDispatcher(GraphicsNode gn, 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 io.sf.carte.echosvg.util.HaltingThread
clearHalted, halt, haltThread, haltThread, hasBeenHalted, hasBeenHalted, isHaltedMethods 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
-