nanomunchers.ui
Class SimulationStatus

java.lang.Object
  extended bynanomunchers.ui.SimulationStatus
All Implemented Interfaces:
FrameListener

public class SimulationStatus
extends java.lang.Object
implements FrameListener

TODO Further documentation needed

Author:
David Kaplin

Constructor Summary
SimulationStatus(heurgame.ui.builder.MutableTextWrapper text)
           
 
Method Summary
 void frameCreated(int totalFrames)
          Sets the text to "N Frames"
 void frameStarted(int currentFrame, int totalFrames)
          Sets the text to N/TotalFrames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationStatus

public SimulationStatus(heurgame.ui.builder.MutableTextWrapper text)
Parameters:
text - that can be manipulated without regard to its originating toolkit.
Method Detail

frameCreated

public void frameCreated(int totalFrames)
Sets the text to "N Frames"

Specified by:
frameCreated in interface FrameListener
Parameters:
totalFrames - is the total number of frames known to exist now.
See Also:
FrameListener.frameCreated(int)

frameStarted

public void frameStarted(int currentFrame,
                         int totalFrames)
Sets the text to N/TotalFrames

Specified by:
frameStarted in interface FrameListener
Parameters:
currentFrame - being played
totalFrames - in the entire playback.
See Also:
FrameListener.frameStarted(int, int)