|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.highpoint.titus.apps.osp.canonicalspaceship.CanonicalSpaceShipApp
Constructor Summary | |
CanonicalSpaceShipApp()
Constructor |
Method Summary | |
void |
initializeAnimation()
Read parameters from the control start the calculation. |
boolean |
isOffScreen()
Checks to see if the spaceship is off the screen. |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
static void |
main(java.lang.String[] args)
Starts the Java application. |
void |
resetAnimation()
Set the default parameters in the control. |
void |
run()
The run method is invoked by the animation thread. |
void |
setControl(org.opensourcephysics.controls.Control control)
Stores a reference to this program's control. |
void |
setImage(java.lang.String filename)
|
void |
startAnimation()
Read parameters from the control and start the calculation. |
void |
stepAnimation()
Stop the animation. |
void |
stopAnimation()
Stop the animation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CanonicalSpaceShipApp()
Method Detail |
public void setControl(org.opensourcephysics.controls.Control control)
setControl
in interface org.opensourcephysics.controls.Animation
control
- Controlpublic void resetAnimation()
resetAnimation
in interface org.opensourcephysics.controls.Animation
public void initializeAnimation()
initializeAnimation
in interface org.opensourcephysics.controls.Animation
public void startAnimation()
startAnimation
in interface org.opensourcephysics.controls.Animation
public void stopAnimation()
stopAnimation
in interface org.opensourcephysics.controls.Animation
public void stepAnimation()
stepAnimation
in interface org.opensourcephysics.controls.Animation
public void run()
run
in interface java.lang.Runnable
public boolean isOffScreen()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void setImage(java.lang.String filename)
public static void main(java.lang.String[] args)
args
- command line parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |