org.jscience.awt.blinker
Class Blinker

java.lang.Object
  extended by org.jscience.awt.blinker.Blinker
All Implemented Interfaces:
java.lang.Runnable

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

Blinker is an invisible bean that fires a property change event at a regular specified interval.


Constructor Summary
Blinker()
          Class constructor which uses the default interval
Blinker(int milliSeconds)
          Class Constructor
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Register a property change listener
 int getInterval()
          Return the blink interval
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a property change listener
 void run()
          Run method runs a infinite loop
 void setInterval(int milliSeconds)
          Set the current blinker interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blinker

public Blinker(int milliSeconds)
Class Constructor

Parameters:
milliSeconds - milliSeconds is the period of the blink

Blinker

public Blinker()
Class constructor which uses the default interval

Method Detail

getInterval

public int getInterval()
Return the blink interval

Returns:
int containing the current interval in milliseconds

setInterval

public void setInterval(int milliSeconds)
Set the current blinker interval

Parameters:
milliSeconds - milliseconds is the new blinker interval

run

public void run()
Run method runs a infinite loop

Specified by:
run in interface java.lang.Runnable

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Register a property change listener

Parameters:
l - l is the listener to register

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a property change listener

Parameters:
l - l is the listener to remove