Class Hor

java.lang.Object
  extended byHor
All Implemented Interfaces:
EtchASketchAnimator

public class Hor
extends java.lang.Object
implements EtchASketchAnimator

Hor - A simple etch-a-sketch controller for creating a horizontal line.

Author:
Ben Bederson Copyright (C) 2003 University of Maryland

Constructor Summary
Hor()
           
 
Method Summary
 Point getPoint(Point currentPos)
          This is a callback method that gets called once for every animation step.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hor

public Hor()
Method Detail

getPoint

public Point getPoint(Point currentPos)
Description copied from interface: EtchASketchAnimator
This is a callback method that gets called once for every animation step. It must return the position of the new point of the etch-a-sketch. The initial position is (100, 100), and after that always has the value returned by the previous call to getPoint().

Specified by:
getPoint in interface EtchASketchAnimator
Parameters:
currentPos - The current position of the etch-a-sketch point
Returns:
The new position