|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inria.infovis.temporizer.AbstractTemporizer
Abstract Implementation of a Temporizer of notification for Infovis objects like Graph, Table or Tree. This class disable/enable notification mecanism periodically. This is very useful when Infovis Object is attached to a visualization. The visualization is refreshed periodically. It works as Decorator of Table. This method us a Swing Timer. a better implementation using java.util.Timer is also possible.
Field Summary | |
static int |
DEFAULT_DELAY
DEFAULT_DELAY period between two disable/enable notification |
static int |
LIMIT_DELAY
LIMIT_DELAY if the action will last more than this delay, the temporizer is stopped |
Constructor Summary | |
AbstractTemporizer(int d,
infovis.Table t)
Construct a new temporizer for the infovis Object giving a delay |
|
AbstractTemporizer(infovis.Table t)
Construct a new temporizer for the infovis Object |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Perform the Timer action, basically : enable notification => firing pending events measure time to execute notification adapt the delay if necessary finally disable notification for next turn |
int |
getDelay()
|
infovis.Table |
getTable()
|
javax.swing.Timer |
getTimer()
|
infovis.Visualization |
getVisualization()
|
void |
setDelay(int delay)
|
void |
setTable(infovis.Table t)
|
void |
setVisualization(infovis.Visualization visualization)
|
void |
start()
Starts the temporization |
void |
stop()
Stops the temporization and restore the notification |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int DEFAULT_DELAY
DEFAULT_DELAY
period between two disable/enable notification
public static int LIMIT_DELAY
LIMIT_DELAY
if the action will last more than this delay, the temporizer is stopped
Constructor Detail |
public AbstractTemporizer(infovis.Table t)
t
- : the Infovis object "temporized"public AbstractTemporizer(int d, infovis.Table t)
d
- the delayt
- the temporozed objectMethod Detail |
public void start()
public void stop()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public int getDelay()
public void setDelay(int delay)
delay
- The delay to set.public infovis.Table getTable()
public void setTable(infovis.Table t)
public javax.swing.Timer getTimer()
public infovis.Visualization getVisualization()
public void setVisualization(infovis.Visualization visualization)
visualization
- The visualization to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |