|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.svg.UpdateRunner
public class UpdateRunner
Class to handle updates to an SVG plot, in particular when used in an Apache Batik UI.
Field Summary | |
---|---|
private Queue<Runnable> |
queue
The queue of pending updates |
private Object |
sync
Owner/Synchronization object |
private Collection<UpdateSynchronizer> |
synchronizer
Synchronizer that can block events from being executed right away. |
Constructor Summary | |
---|---|
protected |
UpdateRunner(Object sync)
Construct a new update handler |
Method Summary | |
---|---|
void |
clear()
Clear queue. |
void |
invokeLater(Runnable r)
Add a new update to run at any appropriate time. |
boolean |
isEmpty()
Check whether the queue is empty. |
void |
runQueue()
Run the processing queue now. |
void |
synchronizeWith(UpdateSynchronizer newsync)
Set a new update synchronizer. |
void |
unsynchronizeWith(UpdateSynchronizer oldsync)
Remove an update synchronizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Object sync
private final Queue<Runnable> queue
private Collection<UpdateSynchronizer> synchronizer
Constructor Detail |
---|
protected UpdateRunner(Object sync)
sync
- Object to synchronize onMethod Detail |
---|
public void invokeLater(Runnable r)
r
- New runnable to perform the updatepublic void runQueue()
public void clear()
public boolean isEmpty()
public void synchronizeWith(UpdateSynchronizer newsync)
newsync
- Update synchronizerpublic void unsynchronizeWith(UpdateSynchronizer oldsync)
oldsync
- Update synchronizer to remove
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |