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

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.gui.tool.util.Animator

public class Animator
extends java.lang.Object

This class performs the animation of the group button bar (to the left of the main window), using tasks and delay timers.

Author:
jcarras
See Also:
Animable

Nested Class Summary
 class Animator.Subscriptor
          This is a autility class used to perform the animation.
 class Animator.Temporizer
          This is a autility class used to perform the animation.
 
Constructor Summary
Animator()
          Constructor.
 
Method Summary
 void doStep()
          This method notifies a new step in the animation to all the animable objects subscribed to it.
 void subscribe(Animable pobj, int pquantity, int pmiliseconds)
          This method adds a new animable object to the list of objects that will receive an animation notification.
 void terminate()
          Forces the complete cancellation of the refresh process.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Animator

public Animator()
Constructor. It initializes the components needed to perform a refresh of the tool group bar.

Method Detail

terminate

public void terminate()
Forces the complete cancellation of the refresh process. It is called when the application terminates and this functionality is no longer needed.


subscribe

public void subscribe(Animable pobj,
                      int pquantity,
                      int pmiliseconds)
This method adds a new animable object to the list of objects that will receive an animation notification.

Parameters:
pobj - the object that has to be animated
pquantity - offset in pixels between one position and the following.
pmiliseconds - duration of the animation in miliseconds. Each step of the animation will substract a certain amount of miliseconds. When it reaches zero, the naimation will end.

doStep

public void doStep()
This method notifies a new step in the animation to all the animable objects subscribed to it.