class JSVGUpdateSynchronizer extends Object implements UpdateSynchronizer
Modifier and Type | Class and Description |
---|---|
private class |
JSVGUpdateSynchronizer.UMAdapter
Adapter that will track the component for UpdateManager changes.
|
Modifier and Type | Field and Description |
---|---|
private WeakReference<JSVGComponent> |
cref
A weak reference to the component the plot is in.
|
private AtomicReference<Runnable> |
pending
The current Runnable scheduled, prevents repeated invocations.
|
private JSVGUpdateSynchronizer.UMAdapter |
umadapter
Adapter to track component changes
|
private Set<WeakReference<UpdateRunner>> |
updaterunner
The UpdateRunner we are put into
|
Modifier | Constructor and Description |
---|---|
protected |
JSVGUpdateSynchronizer(JSVGComponent component)
Create an updateSynchronizer for the given component.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
This method is called whenever a new pending event was added.
|
void |
addUpdateRunner(UpdateRunner updateRunner)
Set an update runner to use.
|
protected void |
makeRunnerIfNeeded()
Join the runnable queue of a component.
|
private final WeakReference<JSVGComponent> cref
private Set<WeakReference<UpdateRunner>> updaterunner
private final JSVGUpdateSynchronizer.UMAdapter umadapter
private final AtomicReference<Runnable> pending
protected JSVGUpdateSynchronizer(JSVGComponent component)
component
- Component to manage updates on.public void activate()
UpdateSynchronizer
activate
in interface UpdateSynchronizer
protected void makeRunnerIfNeeded()
public void addUpdateRunner(UpdateRunner updateRunner)
UpdateSynchronizer
addUpdateRunner
in interface UpdateSynchronizer
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.