pedviz.view.animations
Class Animation

java.lang.Object
  extended by pedviz.view.animations.Animation
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
BlinkAnimation, SizeAnimation

public abstract class Animation
extends java.lang.Object
implements java.lang.Runnable

This abstract class is a superclass for animations on a GraphView.

Author:
Luki

Constructor Summary
Animation(GraphView graphView)
          Creates a new animation for the given GraphView object.
 
Method Summary
 int getInterval()
          Returns the interval of the timer.
abstract  void pulse(GraphView graphView)
          This method will be executed when the timer is expired.
 void run()
           
 void setInterval(int interval)
          Sets the interval of the timer.
 void start()
          Starts the animation.
 void stop()
          Stops the animation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Animation

public Animation(GraphView graphView)
Creates a new animation for the given GraphView object.

Parameters:
graphView -
Method Detail

pulse

public abstract void pulse(GraphView graphView)
This method will be executed when the timer is expired.

Parameters:
graphView -

run

public void run()
Specified by:
run in interface java.lang.Runnable

start

public void start()
Starts the animation.


stop

public void stop()
Stops the animation.


getInterval

public int getInterval()
Returns the interval of the timer.

Returns:
the interval of the timer.

setInterval

public void setInterval(int interval)
Sets the interval of the timer.

Parameters:
interval - the interval of the timer.