Interface EtchASketchAnimator

All Known Implementing Classes:
Diag, DiagBounce, DiagWrap, Dot, Hor, Sine, ZigZag

public interface EtchASketchAnimator

EtchASketchListener - interface to specify how to respond to etch-a-sketch changes

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

Method Summary
 Point getPoint(Point pos)
          This is a callback method that gets called once for every animation step.
 

Method Detail

getPoint

public Point getPoint(Point pos)
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().

Parameters:
pos - The current position of the etch-a-sketch point
Returns:
The new position