org.opensourcephysics.sip.ch03
Class Ball3DApp

java.lang.Object
  extended by org.opensourcephysics.controls.AbstractAnimation
      extended by org.opensourcephysics.controls.AbstractSimulation
          extended by org.opensourcephysics.sip.ch03.Ball3DApp
All Implemented Interfaces:
java.lang.Runnable, Animation, Simulation

public class Ball3DApp
extends AbstractSimulation

Ball3DApp demonstrates the 3D drawing framework by creating a bouncing ball simulation. and implementing the doStep method.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractSimulation
control, showStepsPerDisplay, stepCounter, stepsPerDisplay
 
Fields inherited from class org.opensourcephysics.controls.AbstractAnimation
animationThread, decimalFormat, delayTime, mainFrame
 
Constructor Summary
Ball3DApp()
          Constructs Ball3DApp and initializes the drawing.
 
Method Summary
protected  void doStep()
          Does an animation step by moving the ball.
static void main(java.lang.String[] args)
          Starts the Java application.
 
Methods inherited from class org.opensourcephysics.controls.AbstractSimulation
enableStepsPerDisplay, getControl, getLoader, getStepCounter, getStepsPerDisplay, initialize, initializeAnimation, reset, resetAnimation, run, setControl, setStepsPerDisplay, start, startAnimation, startRunning, startSimulation, stepAnimation, stop, stopAnimation, stopRunning, stopSimulation
 
Methods inherited from class org.opensourcephysics.controls.AbstractAnimation
addChildFrame, clearChildFrames, getChildFrames, getDelayTime, getMainFrame, getOSPApp, isRunning, setDelayTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensourcephysics.controls.Simulation
isRunning
 

Constructor Detail

Ball3DApp

public Ball3DApp()
Constructs Ball3DApp and initializes the drawing.

Method Detail

doStep

protected void doStep()
Does an animation step by moving the ball.

Specified by:
doStep in class AbstractAnimation

main

public static void main(java.lang.String[] args)
Starts the Java application.

Parameters:
args - command line parameters