public class UpdatingEventController
extends java.lang.Object
Constructor and Description |
---|
UpdatingEventController()
Constructor for the UpdatingPlotController object
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener al)
Adds the new ActionListener.
|
java.util.Vector<java.awt.event.ActionListener> |
getActionListeners()
Returns all ActionListeners as a Vector
|
java.lang.Object |
getSyncObj()
Gets the syncObj attribute of the UpdatingEventController object
|
double |
getUpdateTime()
Returns the minimal update time.
|
boolean |
inProgress()
Returns true if the updating has not been accomplished.
|
boolean |
isStop()
Retirns the stop flag
|
static void |
main(java.lang.String[] args)
Description of the Method
|
void |
removeActionListener(java.awt.event.ActionListener al)
Removes the ActionListener.
|
void |
setStop(boolean stop)
Sets the stop flag
|
void |
setUpdateTime(double tm)
Sets the minimal update time.
|
void |
update()
Reluctantly calls the actionPerformed method of registered listeners.
|
public UpdatingEventController()
public void setUpdateTime(double tm)
tm
- The new minimal sleep time value in secpublic double getUpdateTime()
public boolean inProgress()
public boolean isStop()
public void setStop(boolean stop)
stop
- The new stop valuepublic void update()
public void addActionListener(java.awt.event.ActionListener al)
al
- The new ActionListener.public void removeActionListener(java.awt.event.ActionListener al)
al
- The ActionListener to be removed.public java.util.Vector<java.awt.event.ActionListener> getActionListeners()
public java.lang.Object getSyncObj()
public static void main(java.lang.String[] args)
args
- Description of the Parameter