ewe.graphics
Class ImageMover

java.lang.Object
  extended byewe.sys.TaskObject
      extended byewe.graphics.ImageMover
All Implemented Interfaces:
Runnable, Task

public class ImageMover
extends TaskObject


Field Summary
 Point end
          This is the ending point.
 AniImage image
          This is the image being moved.
 int pauseTime
          This is the time to pause between steps, which defaults to 10 ms.
 Point start
          This is the starting point.
 int timeToMove
          This is the length of time it should take to move the image.
 
Fields inherited from class ewe.sys.TaskObject
handle, interruptThreadToStop, myThread, napIterations, napTime, shouldStop
 
Constructor Summary
ImageMover(AniImage image, Point start, Point end, int timeToMove)
           
 
Method Summary
protected  void doRun()
          Override this method if you want to use an mThread to run your Task.
 
Methods inherited from class ewe.sys.TaskObject
checkAbortFail, checkFailure, doStart, doStop, exec, getHandle, nap, run, setNapTime, show, sleep, start, startTask, stopTask, waitOn, waitOnAny, waitOnSuccess, yield, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

timeToMove

public int timeToMove
This is the length of time it should take to move the image.


image

public AniImage image
This is the image being moved.


start

public Point start
This is the starting point.


end

public Point end
This is the ending point.


pauseTime

public int pauseTime
This is the time to pause between steps, which defaults to 10 ms.

Constructor Detail

ImageMover

public ImageMover(AniImage image,
                  Point start,
                  Point end,
                  int timeToMove)
Method Detail

doRun

protected void doRun()
Description copied from class: TaskObject
Override this method if you want to use an mThread to run your Task. Otherwise if you are using timers or callbacks, override the doStart() method.

Overrides:
doRun in class TaskObject