1  import java.awt.*;
  2  
  3  /**
  4     A shape that can be moved around.
  5  */
  6  public interface MoveableShape
  7  {
  8     /**
  9        Draws the shape.
 10        @param g2 the graphics context
 11     */
 12     void draw(Graphics2D g2);
 13     /**
 14        Moves the shape.
 15        It is up to the shape to move itself, for example by tracking the time since 
 16        its last movement, its position, and velocity.
 17     */
 18     void move();
 19  }