|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.apache.batik.swing.svg.SVGDocumentLoader
This class represents an object which loads asynchroneaously a SVG document.
Field Summary | |
protected java.lang.Exception |
exception
The exception thrown. |
protected java.util.List |
listeners
The listeners. |
protected DocumentLoader |
loader
The document loader. |
protected java.lang.String |
url
The URL of the document, |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
SVGDocumentLoader(java.lang.String u,
DocumentLoader l)
Creates a new SVGDocumentLoader. |
Method Summary | |
void |
addSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader. |
protected void |
fireCancelledEvent()
Fires a SVGDocumentLoaderEvent. |
protected void |
fireCompletedEvent(SVGDocument doc)
Fires a SVGDocumentLoaderEvent. |
protected void |
fireFailedEvent()
Fires a SVGDocumentLoaderEvent. |
protected void |
fireStartedEvent()
Fires a SVGDocumentLoaderEvent. |
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 java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String url
protected DocumentLoader loader
protected java.lang.Exception exception
protected java.util.List listeners
Constructor Detail |
public SVGDocumentLoader(java.lang.String u, DocumentLoader l)
u
- The URL of the document.l
- The document loader to useMethod Detail |
public void run()
run
in class java.lang.Thread
public java.lang.Exception getException()
public void addSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
public void removeSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
protected void fireStartedEvent() throws java.lang.InterruptedException
protected void fireCompletedEvent(SVGDocument doc)
protected void fireFailedEvent()
protected void fireCancelledEvent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |