
class JSVGUpdateSynchronizer extends Object implements UpdateSynchronizer
| Modifier and Type | Class and Description | 
|---|---|
| private class  | JSVGUpdateSynchronizer.JSVGSynchronizedRunnerUpdate Runner that will be placed in the Components UpdateManagers queue. | 
| private class  | JSVGUpdateSynchronizer.UMAdapterAdapter that will track the component for UpdateManager changes. | 
| Modifier and Type | Field and Description | 
|---|---|
| private WeakReference<org.apache.batik.swing.svg.JSVGComponent> | crefA weak reference to the component the plot is in. | 
| private WeakReference<JSVGUpdateSynchronizer.JSVGSynchronizedRunner> | syncrunnerThe current Runnable scheduled | 
| private JSVGUpdateSynchronizer.UMAdapter | umadapterAdapter to track component changes | 
| private List<WeakReference<UpdateRunner>> | updaterunnerThe UpdateRunner we are put into | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | JSVGUpdateSynchronizer(org.apache.batik.swing.svg.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 | forgetSynchronizedRunner()Forget the current update runner. | 
| private JSVGUpdateSynchronizer.JSVGSynchronizedRunner | getSynchronizedRunner()Get the current update runner. | 
| protected void | invokeFromRunner(JSVGUpdateSynchronizer.JSVGSynchronizedRunner caller)Invoke from the SVGs run queue. | 
| protected void | makeRunnerIfNeeded()Join the runnable queue of a component. | 
| private void | setSynchronizedRunner(JSVGUpdateSynchronizer.JSVGSynchronizedRunner newrunner)Set the current update runner | 
private final WeakReference<org.apache.batik.swing.svg.JSVGComponent> cref
private List<WeakReference<UpdateRunner>> updaterunner
private final JSVGUpdateSynchronizer.UMAdapter umadapter
private WeakReference<JSVGUpdateSynchronizer.JSVGSynchronizedRunner> syncrunner
protected JSVGUpdateSynchronizer(org.apache.batik.swing.svg.JSVGComponent component)
component - Component to manage updates on.public void activate()
UpdateSynchronizeractivate in interface UpdateSynchronizerprotected void makeRunnerIfNeeded()
public void addUpdateRunner(UpdateRunner updateRunner)
UpdateSynchronizeraddUpdateRunner in interface UpdateSynchronizerprivate void setSynchronizedRunner(JSVGUpdateSynchronizer.JSVGSynchronizedRunner newrunner)
newrunner - private JSVGUpdateSynchronizer.JSVGSynchronizedRunner getSynchronizedRunner()
protected void invokeFromRunner(JSVGUpdateSynchronizer.JSVGSynchronizedRunner caller)
caller - For consistency checksprotected void forgetSynchronizedRunner()