net.refractions.udig.project.ui
Class AnimationUpdater

java.lang.Object
  extended by net.refractions.udig.project.ui.AnimationUpdater

public class AnimationUpdater
extends java.lang.Object

Responsible for updating the viewport when animations need their next animation frame to be displayed.

Author:
jeichar

Constructor Summary
AnimationUpdater(ViewportPane display, short frameInterval)
           
 
Method Summary
 java.util.List<IAnimation> getAnimations()
           
 short getFrameInterval()
           
 void run()
           
static void runTimer(IMapDisplay mapDisplay, IAnimation animation)
           
static void setTesting(boolean isTesting)
          should only be used for testing purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationUpdater

public AnimationUpdater(ViewportPane display,
                        short frameInterval)
Method Detail

run

public void run()

setTesting

public static void setTesting(boolean isTesting)
should only be used for testing purposes.

Parameters:
testing -

runTimer

public static void runTimer(IMapDisplay mapDisplay,
                            IAnimation animation)

getAnimations

public java.util.List<IAnimation> getAnimations()
Returns:
Returns the animations.

getFrameInterval

public short getFrameInterval()
Returns:
Returns the frameInterval.