public class SVGDocumentLoader extends HaltingThread
Modifier and Type | Field and Description |
---|---|
(package private) static EventDispatcher.Dispatcher |
cancelledDispatcher |
(package private) static EventDispatcher.Dispatcher |
completedDispatcher |
protected java.lang.Exception |
exception
The exception thrown.
|
(package private) static EventDispatcher.Dispatcher |
failedDispatcher |
protected java.util.List |
listeners
The listeners.
|
protected DocumentLoader |
loader
The document loader.
|
(package private) static EventDispatcher.Dispatcher |
startedDispatcher |
protected java.lang.String |
url
The URL of the document,
|
beenHalted
Constructor and Description |
---|
SVGDocumentLoader(java.lang.String u,
DocumentLoader l)
Creates a new SVGDocumentLoader.
|
Modifier and Type | Method and Description |
---|---|
void |
addSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader.
|
void |
fireEvent(EventDispatcher.Dispatcher dispatcher,
java.lang.Object event) |
java.lang.Exception |
getException()
Returns the exception, if any occured.
|
void |
removeSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader.
|
void |
run()
Runs this loader.
|
clearHalted, halt, haltThread, haltThread, hasBeenHalted, hasBeenHalted, isHalted
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected java.lang.String url
protected DocumentLoader loader
protected java.lang.Exception exception
protected java.util.List listeners
static EventDispatcher.Dispatcher startedDispatcher
static EventDispatcher.Dispatcher completedDispatcher
static EventDispatcher.Dispatcher cancelledDispatcher
static EventDispatcher.Dispatcher failedDispatcher
public SVGDocumentLoader(java.lang.String u, DocumentLoader l)
u
- The URL of the document.l
- The document loader to usepublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.lang.Exception getException()
public void addSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
public void removeSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
public void fireEvent(EventDispatcher.Dispatcher dispatcher, java.lang.Object event)