org.apache.batik.swing.svg
Class GVTTreeBuilder

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

public class GVTTreeBuilder
extends HaltingThread

This class represents an object which builds asynchroneaously a GVT tree.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  BridgeContext bridgeContext
          The bridge context to use.
protected  Exception exception
          The exception thrown.
protected  List listeners
          The listeners.
protected  org.w3c.dom.svg.SVGDocument svgDocument
          The SVG document to give to the bridge.
 
Fields inherited from class org.apache.batik.util.HaltingThread
beenHalted
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GVTTreeBuilder(org.w3c.dom.svg.SVGDocument doc, BridgeContext bc)
          Creates a new GVTTreeBuilder.
 
Method Summary
 void addGVTTreeBuilderListener(GVTTreeBuilderListener l)
          Adds a GVTTreeBuilderListener to this GVTTreeBuilder.
 void fireEvent(EventDispatcher.Dispatcher dispatcher, Object event)
           
 Exception getException()
          Returns the exception, if any occured.
 void removeGVTTreeBuilderListener(GVTTreeBuilderListener l)
          Removes a GVTTreeBuilderListener from this GVTTreeBuilder.
 void run()
          Runs this builder.
 
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, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

svgDocument

protected org.w3c.dom.svg.SVGDocument svgDocument
The SVG document to give to the bridge.


bridgeContext

protected BridgeContext bridgeContext
The bridge context to use.


listeners

protected List listeners
The listeners.


exception

protected Exception exception
The exception thrown.

Constructor Detail

GVTTreeBuilder

public GVTTreeBuilder(org.w3c.dom.svg.SVGDocument doc,
                      BridgeContext bc)
Creates a new GVTTreeBuilder.

Method Detail

run

public void run()
Runs this builder.

Specified by:
run in interface Runnable
Overrides:
run in class Thread

getException

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


addGVTTreeBuilderListener

public void addGVTTreeBuilderListener(GVTTreeBuilderListener l)
Adds a GVTTreeBuilderListener to this GVTTreeBuilder.


removeGVTTreeBuilderListener

public void removeGVTTreeBuilderListener(GVTTreeBuilderListener l)
Removes a GVTTreeBuilderListener from this GVTTreeBuilder.


fireEvent

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


Copyright © 2008 Apache Software Foundation. All Rights Reserved.