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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.batikutil.NodeAppendChild
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
NodeReplaceChild

public class NodeAppendChild
extends Object
implements Runnable

Runnable wrapper for appending XML-Elements to existing Elements.


Field Summary
protected  Element child
          The child to be appended.
protected  String id
          The ID.
protected  Element parent
          Parent node to append to.
protected  SVGPlot plot
          The plot (for ID updates).
 
Constructor Summary
NodeAppendChild(Element parent, Element child)
          Trivial constructor.
NodeAppendChild(Element parent, Element child, SVGPlot plot, String id)
          Full constructor.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected Element parent
Parent node to append to.


child

protected Element child
The child to be appended.


plot

protected SVGPlot plot
The plot (for ID updates). May be {code null}.


id

protected String id
The ID. May be {code null}.

Constructor Detail

NodeAppendChild

public NodeAppendChild(Element parent,
                       Element child)
Trivial constructor.

Parameters:
parent - will become the parent of the appended Element.
child - the Element to be appended.

NodeAppendChild

public NodeAppendChild(Element parent,
                       Element child,
                       SVGPlot plot,
                       String id)
Full constructor.

Parameters:
parent - Parent node to append the child to
child - Child element
plot - Plot to register the ID (may be null)
id - ID to register (may be null, requires plot to be given)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

Release 0.4.0 (2011-09-20_1324)