es.prodevelop.gvsig.mobile.gui.tool.util
Class PanRefreshTimerTask

java.lang.Object
  extended byjava.util.TimerTask
      extended byes.prodevelop.gvsig.mobile.gui.tool.util.PanRefreshTimerTask
All Implemented Interfaces:
java.lang.Runnable

public class PanRefreshTimerTask
extends java.util.TimerTask

This is a utility class used to describe the refresh task performed on a regular basis while the pan process is happening. This object decides when the refresh has to be done, but the amount of the offset used to paint again the image is set in another place.

Author:
jldominguez

Constructor Summary
PanRefreshTimerTask(Refreshable _mc)
          Constructor.
 
Method Summary
 void run()
           
 void setOffSetX(int x)
          This method sets a new horizontal offset for the image.
 void setOffSetY(int y)
          This method sets a new vertical offset for the image.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanRefreshTimerTask

public PanRefreshTimerTask(Refreshable _mc)
Constructor.

Parameters:
_mc - The object that will be notified when a new refreshment needs to be done.
Method Detail

run

public void run()

setOffSetX

public void setOffSetX(int x)
This method sets a new horizontal offset for the image. This object decides when the refresh has to be done, but the amount of the offset used to paint again the image is set in another place.

Parameters:
x - the new horizontal offset

setOffSetY

public void setOffSetY(int y)
This method sets a new vertical offset for the image. This object decides when the refresh has to be done, but the amount of the offset used to paint again the image is set in another place.

Parameters:
y - the new vertical offset