Class NodeReplaceByID

  • All Implemented Interfaces:
    java.lang.Runnable

    public class NodeReplaceByID
    extends java.lang.Object
    implements java.lang.Runnable
    This helper class will replace a node in an SVG plot. This is a Runnable to be put on the update queue.
    Since:
    0.2
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String id
      ID of element to replace.
      private org.w3c.dom.Element newe
      Replacement element.
      private SVGPlot plot
      Plot to work in.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeReplaceByID​(org.w3c.dom.Element newe, SVGPlot plot, java.lang.String id)
      Setup a SVG node replacement.
    • 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

      • plot

        private SVGPlot plot
        Plot to work in.
      • id

        private java.lang.String id
        ID of element to replace.
      • newe

        private org.w3c.dom.Element newe
        Replacement element.
    • Constructor Detail

      • NodeReplaceByID

        public NodeReplaceByID​(org.w3c.dom.Element newe,
                               SVGPlot plot,
                               java.lang.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()
        Specified by:
        run in interface java.lang.Runnable