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:
java.lang.Runnable
public class SVGDocumentLoader extends HaltingThread
This class represents an object which loads asynchroneaously a SVG document.- Version:
- $Id: SVGDocumentLoader.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field 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,-
Fields inherited from class org.apache.batik.util.HaltingThread
beenHalted
-
-
Constructor Summary
Constructors Constructor Description SVGDocumentLoader(java.lang.String u, DocumentLoader l)
Creates a new SVGDocumentLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
url
protected java.lang.String url
The URL of the document,
-
loader
protected DocumentLoader loader
The document loader.
-
exception
protected java.lang.Exception exception
The exception thrown.
-
listeners
protected java.util.List listeners
The listeners.
-
startedDispatcher
static EventDispatcher.Dispatcher startedDispatcher
-
completedDispatcher
static EventDispatcher.Dispatcher completedDispatcher
-
cancelledDispatcher
static EventDispatcher.Dispatcher cancelledDispatcher
-
failedDispatcher
static EventDispatcher.Dispatcher failedDispatcher
-
-
Constructor Detail
-
SVGDocumentLoader
public SVGDocumentLoader(java.lang.String u, DocumentLoader l)
Creates a new SVGDocumentLoader.- Parameters:
u
- The URL of the document.l
- The document loader to use
-
-
Method Detail
-
run
public void run()
Runs this loader.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
getException
public java.lang.Exception getException()
Returns the exception, if any occured.
-
addSVGDocumentLoaderListener
public void addSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader.
-
removeSVGDocumentLoaderListener
public void removeSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader.
-
fireEvent
public void fireEvent(EventDispatcher.Dispatcher dispatcher, java.lang.Object event)
-
-