public class SimulationRunnable
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SimulationRunnable(java.awt.event.ActionListener frameDrawer)
Creates a runnable.
|
Modifier and Type | Method and Description |
---|---|
int |
getFrameRate()
Accessor for this animation's frame rate.
|
void |
run()
Causes this runnable to launch.
|
void |
run(int frameRate)
Causes this runnable to launch.
|
boolean |
setFrameRate(int targetFrameRate)
Update this animation's frame rate to the passed value.
|
public SimulationRunnable(java.awt.event.ActionListener frameDrawer)
public int getFrameRate()
public boolean setFrameRate(int targetFrameRate)
targetFrameRate
- the target frame ratepublic void run(int frameRate)
frameRate
- public void run()
run
in interface java.lang.Runnable