com.jpemartin.jgt
Class MoveVerticalWave

java.lang.Object
  extended by com.jpemartin.jgt.MoveVerticalWave
All Implemented Interfaces:
MoveControl

public class MoveVerticalWave
extends java.lang.Object
implements MoveControl

move vertically following a sine wave.

Author:
jpmartin
See Also:
MoveHorizontalWave

Constructor Summary
MoveVerticalWave(int amplitude, int angularVelocity)
           
 
Method Summary
 void move(java.awt.Rectangle moved)
          move "moved" by one step
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveVerticalWave

public MoveVerticalWave(int amplitude,
                        int angularVelocity)
Method Detail

move

public void move(java.awt.Rectangle moved)
Description copied from interface: MoveControl
move "moved" by one step

Specified by:
move in interface MoveControl