pedviz.view.animations
Class BlinkAnimation

java.lang.Object
  extended by pedviz.view.animations.Animation
      extended by pedviz.view.animations.BlinkAnimation
All Implemented Interfaces:
java.lang.Runnable

public class BlinkAnimation
extends Animation

This animation lets a collection of nodes blink.

Author:
lukas forer

Constructor Summary
BlinkAnimation(GraphView graphView, java.util.Set<Node> nodes)
          Creates a new BlinkAnimation object for the given GraphView object.
BlinkAnimation(GraphView graphView, java.util.Set<Node> nodes, java.awt.Color background, java.awt.Color border)
          Creates a new BlinkAnimation object for the given GraphView object.
 
Method Summary
 void pulse(GraphView graphView)
          This method will be executed when the timer is expired.
 void stop()
          Stops the animation.
 
Methods inherited from class pedviz.view.animations.Animation
getInterval, run, setInterval, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlinkAnimation

public BlinkAnimation(GraphView graphView,
                      java.util.Set<Node> nodes,
                      java.awt.Color background,
                      java.awt.Color border)
Creates a new BlinkAnimation object for the given GraphView object. All nodes of the given collection change their color to the given color.

Parameters:
graphView - GraphView object.
nodes - a collection of nodes which blinks.
background - new background color.
border - new border color.

BlinkAnimation

public BlinkAnimation(GraphView graphView,
                      java.util.Set<Node> nodes)
Creates a new BlinkAnimation object for the given GraphView object. All nodes of the given collection change their color to the given color.

Parameters:
graphView -
nodes -
Method Detail

pulse

public void pulse(GraphView graphView)
Description copied from class: Animation
This method will be executed when the timer is expired.

Specified by:
pulse in class Animation

stop

public void stop()
Description copied from class: Animation
Stops the animation.

Overrides:
stop in class Animation