Package org.apache.batik.swing.svg
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: SVGDocumentLoader.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static EventDispatcher.Dispatcher
(package private) static EventDispatcher.Dispatcher
protected Exception
The exception thrown.(package private) static EventDispatcher.Dispatcher
protected List
The listeners.protected DocumentLoader
The document loader.(package private) static EventDispatcher.Dispatcher
protected String
The URL of the document,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
ConstructorsConstructorDescriptionCreates a new SVGDocumentLoader. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader.void
fireEvent
(EventDispatcher.Dispatcher dispatcher, Object event) Returns the exception, if any occured.void
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader.void
run()
Runs this loader.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
-
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
public void run()Runs this loader. -
getException
Returns the exception, if any occured. -
addSVGDocumentLoaderListener
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader. -
removeSVGDocumentLoaderListener
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader. -
fireEvent
-