Class SVGDocumentLoader

java.lang.Object
java.lang.Thread
org.apache.batik.util.HaltingThread
org.apache.batik.swing.svg.SVGDocumentLoader
All Implemented Interfaces:
Runnable

public class SVGDocumentLoader extends HaltingThread
This class represents an object which loads asynchroneaously a SVG document.
  • Field Details

    • url

      protected String url
      The URL of the document,
    • loader

      protected DocumentLoader loader
      The document loader.
    • exception

      protected Exception exception
      The exception thrown.
    • listeners

      protected List listeners
      The listeners.
  • Constructor Details

    • 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 Details

    • run

      public void run()
      Runs this loader.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • getException

      public 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, Object event)