Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.util
Class Blinker  view Blinker download Blinker.java

java.lang.Object
  extended bycom.port80.eclipse.util.Blinker
All Implemented Interfaces:
java.lang.Runnable

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

General blinking worker that call given Runnable on the given on and off time interval.


Field Summary
private  IBlinkHandler fBlinker
           
private  org.eclipse.swt.widgets.Display fDisplay
           
private  int fOffTime
           
private  int fOnTime
           
private  boolean isOff
           
 
Constructor Summary
Blinker(org.eclipse.swt.widgets.Display display, int init, int on, int off, IBlinkHandler a)
           
 
Method Summary
 boolean isOff()
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void setOff(boolean b)
           
 void setOffTime(int t)
           
 void setOnTime(int t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fDisplay

private org.eclipse.swt.widgets.Display fDisplay

fBlinker

private IBlinkHandler fBlinker

fOnTime

private int fOnTime

fOffTime

private int fOffTime

isOff

private boolean isOff
Constructor Detail

Blinker

public Blinker(org.eclipse.swt.widgets.Display display,
               int init,
               int on,
               int off,
               IBlinkHandler a)
Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

setOnTime

public void setOnTime(int t)

setOffTime

public void setOffTime(int t)

setOff

public void setOff(boolean b)

isOff

public boolean isOff()