com.jpemartin.jgt
Class MoveLeftRight

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

public class MoveLeftRight
extends java.lang.Object
implements MoveControl


Constructor Summary
MoveLeftRight(int maxX)
          initialize the left-right movement with the default speed (4)
MoveLeftRight(int maxX, int speed)
          initialize the left-right movement with the given speed
 
Method Summary
 void move(java.awt.Rectangle me)
          move "moved" by one step
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveLeftRight

public MoveLeftRight(int maxX)
initialize the left-right movement with the default speed (4)


MoveLeftRight

public MoveLeftRight(int maxX,
                     int speed)
initialize the left-right movement with the given speed

Method Detail

move

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

Specified by:
move in interface MoveControl