Class SVGDocumentLoader
java.lang.Object
java.lang.Thread
org.apache.batik.util.HaltingThread
org.apache.batik.swing.svg.SVGDocumentLoader
- All Implemented Interfaces:
Runnable
This class represents an object which loads asynchroneaously 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 TypeFieldDescription(package private) static EventDispatcher.Dispatcher(package private) static EventDispatcher.Dispatcherprotected ExceptionThe exception thrown.(package private) static EventDispatcher.Dispatcherprotected ListThe listeners.protected DocumentLoaderThe document loader.(package private) static EventDispatcher.Dispatcherprotected StringThe URL of the document,Fields inherited from class HaltingThread
beenHaltedFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SVGDocumentLoader. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a SVGDocumentLoaderListener to this SVGDocumentLoader.voidfireEvent(EventDispatcher.Dispatcher dispatcher, Object event) Returns the exception, if any occured.voidRemoves a SVGDocumentLoaderListener from this SVGDocumentLoader.voidrun()Runs this loader.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
-
url
The URL of the document, -
loader
The document loader. -
exception
The exception thrown. -
listeners
The listeners. -
startedDispatcher
-
completedDispatcher
-
cancelledDispatcher
-
failedDispatcher
-
-
Constructor Details
-
SVGDocumentLoader
Creates a new SVGDocumentLoader.- Parameters:
u- The URL of the document.l- The document loader to use
-
-
Method Details
-
run
-
getException
Returns the exception, if any occured. -
addSVGDocumentLoaderListener
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader. -
removeSVGDocumentLoaderListener
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader. -
fireEvent
-