org.opensourcephysics.sip.ch01
Class SHOView

java.lang.Object
  extended by org.opensourcephysics.controls.AbstractAnimation
      extended by org.opensourcephysics.sip.ch01.SHOView
All Implemented Interfaces:
java.lang.Runnable, Animation

public class SHOView
extends AbstractAnimation

SHOView draws the oscillator in a drawing panel and plots the oscillator position graph. The oscillator is represented as a red ball.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractAnimation
animationThread, control, decimalFormat, delayTime, mainFrame
 
Constructor Summary
SHOView()
          Constructs SHOView.
 
Method Summary
protected  void doStep()
          Does an animation step.
 void initializeAnimation()
          Initializes the animation.
 void resetAnimation()
          Resets the animation to a predefined state.
 
Methods inherited from class org.opensourcephysics.controls.AbstractAnimation
addChildFrame, clearChildFrames, getChildFrames, getControl, getDelayTime, getLoader, getMainFrame, getOSPApp, isRunning, run, setControl, setDelayTime, startAnimation, stepAnimation, stopAnimation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHOView

public SHOView()
Constructs SHOView.

Method Detail

initializeAnimation

public void initializeAnimation()
Initializes the animation.

Specified by:
initializeAnimation in interface Animation
Overrides:
initializeAnimation in class AbstractAnimation

doStep

protected void doStep()
Does an animation step.

Specified by:
doStep in class AbstractAnimation

resetAnimation

public void resetAnimation()
Resets the animation to a predefined state.

Specified by:
resetAnimation in interface Animation
Overrides:
resetAnimation in class AbstractAnimation