hades.gui
Class SyncRedrawTimer

java.lang.Object
  extended byjava.lang.Thread
      extended byhades.gui.SyncRedrawTimer
All Implemented Interfaces:
java.lang.Runnable

public class SyncRedrawTimer
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SyncRedrawTimer(ObjectCanvas canvas)
           
 
Method Summary
 long getPeriod()
           
 void getSetupDefaults()
           
static void main(java.lang.String[] argv)
           
 void oneRepaint()
           
 void run()
           
 void setFramerate(double framerate)
          specify the target repaint frequency (frames per second) for synchronous repaints during simulation.
 void setPeriod(long millis)
           
 java.lang.String toString()
           
 
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, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyncRedrawTimer

public SyncRedrawTimer(ObjectCanvas canvas)
Method Detail

getSetupDefaults

public void getSetupDefaults()

setFramerate

public void setFramerate(double framerate)
specify the target repaint frequency (frames per second) for synchronous repaints during simulation. A value of 0.0 means no repaint, -1 implies to use the default from the .hadesrc file.


setPeriod

public void setPeriod(long millis)

getPeriod

public long getPeriod()

run

public void run()

oneRepaint

public void oneRepaint()

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] argv)