org.generation5.swing
Class VisStepApplet.DefaultActions

java.lang.Object
  extended byorg.generation5.swing.VisStepApplet.DefaultActions
All Implemented Interfaces:
VisStepListener
Enclosing class:
VisStepApplet

protected class VisStepApplet.DefaultActions
extends java.lang.Object
implements VisStepListener

These are the default actions for VisStepApplets.


Constructor Summary
protected VisStepApplet.DefaultActions()
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent evt)
          No default action for mouse clicks.
 void resetButton(java.awt.event.ActionEvent evt)
          Stop the timer and run the Steppable's reset method.
 void startButton(java.awt.event.ActionEvent evt)
          Start the timer.
 void stepButton(java.awt.event.ActionEvent evt)
          Stop the timer, and advance the Steppable one timestep using doStep.
 void timer(java.awt.event.ActionEvent evt)
          Advances the applet by one timestep, calling doStep and repainting the visualization panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisStepApplet.DefaultActions

protected VisStepApplet.DefaultActions()
Method Detail

startButton

public void startButton(java.awt.event.ActionEvent evt)
Start the timer.

Specified by:
startButton in interface VisStepListener
Parameters:
evt - an action event.

stepButton

public void stepButton(java.awt.event.ActionEvent evt)
Stop the timer, and advance the Steppable one timestep using doStep.

Specified by:
stepButton in interface VisStepListener
Parameters:
evt - an actiob event.

resetButton

public void resetButton(java.awt.event.ActionEvent evt)
Stop the timer and run the Steppable's reset method.

Specified by:
resetButton in interface VisStepListener
Parameters:
evt - an action event.

timer

public void timer(java.awt.event.ActionEvent evt)
Advances the applet by one timestep, calling doStep and repainting the visualization panel.

Specified by:
timer in interface VisStepListener
Parameters:
evt - an action event.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
No default action for mouse clicks.

Specified by:
mouseClicked in interface VisStepListener
Parameters:
evt - a mouse event.
See Also:
VisualizationPanel

This documentation is part of the Generation5 JDK.