SimJava 2.0.1

eduni.simdiag
Class GraphWindow

Object
  extended by Thread
      extended by GraphWindow
All Implemented Interfaces:
Runnable

public class GraphWindow
extends Thread

A graph diagram in a separate window (and thread). Note that it is the GraphDiagram which listens to graph event objects, not the GraphWindow. Usage (from a class which generates GraphObjects)

   GraphWindow gw = new GraphWindow();
   addGraphListener( gw.getDiag());
   gw.start();
 


Nested Class Summary
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  Frame f
           
(package private)  GraphDiagram td
           
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GraphWindow()
           
 
Method Summary
 GraphDiagram getDiag()
          Returns the graph diagram for this window
 void run()
          Displays the window
 
Methods inherited from class Thread
activeCount, checkAccess, 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

f

Frame f

td

GraphDiagram td
Constructor Detail

GraphWindow

public GraphWindow()
Method Detail

run

public void run()
Displays the window

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

getDiag

public GraphDiagram getDiag()
Returns the graph diagram for this window


SimJava 2.0.1

The University of Edinburgh, 2009