Class 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
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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 java.lang.Runnable
        Overrides:
        run in class NodeAppendChild