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
| Fields inherited from class org.crwth.systems.Viewer |
d, s |
| 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 |
GraphicViewer
public GraphicViewer()
GraphicViewer
public GraphicViewer(Space space)
GraphicViewer
public GraphicViewer(long delay)
GraphicViewer
public GraphicViewer(Space space,
long delay)
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)