Package elki.visualization.batikutil
Class NodeReplaceAllChildren
- java.lang.Object
-
- elki.visualization.batikutil.NodeAppendChild
-
- elki.visualization.batikutil.NodeReplaceAllChildren
-
- All Implemented Interfaces:
java.lang.Runnable
public class NodeReplaceAllChildren extends NodeAppendChild
Runnable wrapper to replace all children of a given node.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.visualization.batikutil.NodeAppendChild
child, id, parent, plot
-
-
Constructor Summary
Constructors Constructor Description NodeReplaceAllChildren(org.w3c.dom.Element parent, org.w3c.dom.Element child)
Trivial constructor.NodeReplaceAllChildren(org.w3c.dom.Element parent, org.w3c.dom.Element child, SVGPlot plot, java.lang.String id)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Constructor Detail
-
NodeReplaceAllChildren
public NodeReplaceAllChildren(org.w3c.dom.Element parent, org.w3c.dom.Element child)
Trivial constructor.- Parameters:
parent
- will become the parent of the appended Element.child
- the Element to be appended.
-
NodeReplaceAllChildren
public NodeReplaceAllChildren(org.w3c.dom.Element parent, org.w3c.dom.Element child, SVGPlot plot, java.lang.String id)
Full constructor.- Parameters:
parent
- Parent node to append the child tochild
- Child elementplot
- Plot to register the ID (may benull
)id
- ID to register (may benull
, requires plot to be given)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classNodeAppendChild
-
-