KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > action > RepaintAction


1 package prefuse.action;
2
3 import prefuse.Visualization;
4
5 /**
6  * Issues a repaint request to a Visualization.
7  *
8  * @version 1.0
9  * @author <a HREF="http://jheer.org">jeffrey heer</a>
10  */

11 public class RepaintAction extends Action {
12
13     /**
14      * Create a new RepaintAction.
15      */

16     public RepaintAction() {
17         super();
18     }
19     
20     /**
21      * Create a new RepaintAction.
22      * @param vis the Visualization to repaint
23      */

24     public RepaintAction(Visualization vis) {
25         super(vis);
26     }
27     
28     /**
29      * Calls the {@link prefuse.Visualization#repaint()} method on
30      * this Action's associated Visualization.
31      */

32     public void run(double frac) {
33         getVisualization().repaint();
34     }
35
36 } // end of class RepaintAction
37
Popular Tags