Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.visualization.batikutil
Class NodeReplacer

java.lang.Object
  extended by org.apache.batik.bridge.UpdateManagerAdapter
      extended by de.lmu.ifi.dbs.elki.visualization.batikutil.RunWhenReadyAndVisible
          extended by de.lmu.ifi.dbs.elki.visualization.batikutil.NodeReplacer
All Implemented Interfaces:
Runnable, org.apache.batik.bridge.UpdateManagerListener

public class NodeReplacer
extends RunWhenReadyAndVisible

This helper class will replace a node in an SVG plot, as soon as the tree is unlocked by the rendering engine.

Author:
Erich Schubert

Field Summary
private  String id
           
private  Element newe
           
private  SVGPlot plot
           
 
Constructor Summary
NodeReplacer(Element newe, SVGPlot plot, String id)
          Setup a SVG node replacement.
 
Method Summary
 void run()
          Run method invoked from the updateManager.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.batikutil.RunWhenReadyAndVisible
hook, managerStarted
 
Methods inherited from class org.apache.batik.bridge.UpdateManagerAdapter
managerResumed, managerStopped, managerSuspended, updateCompleted, updateFailed, updateStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plot

private SVGPlot plot

id

private String id

newe

private Element newe
Constructor Detail

NodeReplacer

public NodeReplacer(Element newe,
                    SVGPlot plot,
                    String id)
Setup a SVG node replacement.

Parameters:
newe - New element
plot - SVG plot to process
id - Node ID to replace
Method Detail

run

public void run()
Description copied from class: RunWhenReadyAndVisible
Run method invoked from the updateManager.

Specified by:
run in interface Runnable
Specified by:
run in class RunWhenReadyAndVisible

Release 0.2.1 (2009-07-13_1605)