org.apache.batik.swing.svg

Class SVGDocumentLoader

public class SVGDocumentLoader extends HaltingThread

This class represents an object which loads asynchroneaously a SVG document.
Field Summary
protected Exceptionexception
The exception thrown.
protected Listlisteners
The listeners.
protected DocumentLoaderloader
The document loader.
protected Stringurl
The URL of the document,
Constructor Summary
SVGDocumentLoader(String u, DocumentLoader l)
Creates a new SVGDocumentLoader.
Method Summary
voidaddSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader.
voidfireEvent(EventDispatcher.Dispatcher dispatcher, Object event)
ExceptiongetException()
Returns the exception, if any occured.
voidremoveSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader.
voidrun()
Runs this loader.

Field Detail

exception

protected Exception exception
The exception thrown.

listeners

protected List listeners
The listeners.

loader

protected DocumentLoader loader
The document loader.

url

protected String url
The URL of the document,

Constructor Detail

SVGDocumentLoader

public SVGDocumentLoader(String u, DocumentLoader l)
Creates a new SVGDocumentLoader.

Parameters: u The URL of the document. l The document loader to use

Method Detail

addSVGDocumentLoaderListener

public void addSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Adds a SVGDocumentLoaderListener to this SVGDocumentLoader.

fireEvent

public void fireEvent(EventDispatcher.Dispatcher dispatcher, Object event)

getException

public Exception getException()
Returns the exception, if any occured.

removeSVGDocumentLoaderListener

public void removeSVGDocumentLoaderListener(SVGDocumentLoaderListener l)
Removes a SVGDocumentLoaderListener from this SVGDocumentLoader.

run

public void run()
Runs this loader.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.