edu.webfoot.vnc.editor
Class AutoRefresh

java.lang.Object
  extended by edu.webfoot.vnc.editor.AutoRefresh
All Implemented Interfaces:
java.lang.Runnable

public class AutoRefresh
extends java.lang.Object
implements java.lang.Runnable

A Runnable class that continually updates the image that the plug-in view is displaying. Refers to the client for the image.

Author:
Ken Breeman (kbreeman@wpi.edu), Eric Griffel (sniffels@wpi.edu)

Constructor Summary
AutoRefresh(VNCEditor vncv)
          Private constructor
 
Method Summary
 void restart()
          Re-initializes the this.run method so it can be run again.
 void run()
          Main method for the runnable.
 void stopRunning()
          Terminates this.run method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoRefresh

public AutoRefresh(VNCEditor vncv)
Private constructor

Method Detail

run

public void run()
Main method for the runnable. Updates view every 100ms. Terminates when this.stopRunning is invoked. Once terminated, this.restart must be invoked before runnable can be run again.

Specified by:
run in interface java.lang.Runnable

stopRunning

public void stopRunning()
Terminates this.run method.


restart

public void restart()
Re-initializes the this.run method so it can be run again.