org.crwth.systems
Class GraphicViewer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.crwth.systems.Viewer
              |
              +--org.crwth.systems.GraphicViewer
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
GraphicViewer2d

public abstract class GraphicViewer
extends Viewer


Field Summary
 
Fields inherited from class org.crwth.systems.Viewer
d, s
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GraphicViewer()
           
GraphicViewer(long delay)
           
GraphicViewer(Space space)
           
GraphicViewer(Space space, long delay)
           
 
Method Summary
 void drawWorld(Frame f)
           
 void drawWorld(Graphics g, Applet p)
           
abstract  void drawWorld(Graphics g, Image im)
           
 int getDimension()
           
 void setSpace(Space space)
          Sets the Space object used to retrieve Mass and Spring objects.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, 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
 

Constructor Detail

GraphicViewer

public GraphicViewer()

GraphicViewer

public GraphicViewer(Space space)

GraphicViewer

public GraphicViewer(long delay)

GraphicViewer

public GraphicViewer(Space space,
                     long delay)
Method Detail

setSpace

public void setSpace(Space space)
              throws WrongDimensionException
Description copied from class: Viewer
Sets the Space object used to retrieve Mass and Spring objects.

Specified by:
setSpace in class Viewer
Parameters:
space - the Space object to use.
Throws:
WrongDimensionException - if space has a mismatched dimension.

getDimension

public int getDimension()

drawWorld

public abstract void drawWorld(Graphics g,
                               Image im)

drawWorld

public void drawWorld(Frame f)

drawWorld

public void drawWorld(Graphics g,
                      Applet p)