java.lang.Object
com.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.
|
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 |
fDisplay
private org.eclipse.swt.widgets.Display fDisplay
fBlinker
private IBlinkHandler fBlinker
fOnTime
private int fOnTime
fOffTime
private int fOffTime
isOff
private boolean isOff
Blinker
public Blinker(org.eclipse.swt.widgets.Display display,
int init,
int on,
int off,
IBlinkHandler a)
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()