Class NodeAppendChild

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    NodeReplaceAllChildren

    public class NodeAppendChild
    extends java.lang.Object
    implements java.lang.Runnable
    Runnable wrapper for appending XML-Elements to existing Elements.
    Since:
    0.3
    Author:
    Remigius Wojdanowski
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.w3c.dom.Element child
      The child to be appended.
      protected java.lang.String id
      The ID.
      protected org.w3c.dom.Element parent
      Parent node to append to.
      protected SVGPlot plot
      The plot (for ID updates).
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeAppendChild​(org.w3c.dom.Element parent, org.w3c.dom.Element child)
      Trivial constructor.
      NodeAppendChild​(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
    • Field Detail

      • parent

        protected org.w3c.dom.Element parent
        Parent node to append to.
      • child

        protected org.w3c.dom.Element child
        The child to be appended.
      • plot

        protected SVGPlot plot
        The plot (for ID updates). May be null.
      • id

        protected java.lang.String id
        The ID. May be {code null}.
    • Constructor Detail

      • NodeAppendChild

        public NodeAppendChild​(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.
      • NodeAppendChild

        public NodeAppendChild​(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