Class DotProvenanceTreeRenderer


  • public class DotProvenanceTreeRenderer
    extends java.lang.Object
    Renders a provenance node into a picture
    Author:
    Sylvain Hallé
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.Integer> m_ids  
      protected int m_nodeCounter  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String escape​(java.lang.String s)  
      java.lang.String styleNode​(ca.uqac.lif.petitpoucet.ProvenanceNode n)  
      java.lang.String toDot​(ca.uqac.lif.petitpoucet.ProvenanceNode... nodes)  
      protected void toDot​(ca.uqac.lif.petitpoucet.ProvenanceNode node, java.lang.String parent_id, int parent, java.lang.StringBuilder out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_nodeCounter

        protected int m_nodeCounter
      • m_ids

        protected java.util.Map<java.lang.String,​java.lang.Integer> m_ids
    • Constructor Detail

      • DotProvenanceTreeRenderer

        public DotProvenanceTreeRenderer()
    • Method Detail

      • toDot

        public java.lang.String toDot​(ca.uqac.lif.petitpoucet.ProvenanceNode... nodes)
      • toDot

        protected void toDot​(ca.uqac.lif.petitpoucet.ProvenanceNode node,
                             java.lang.String parent_id,
                             int parent,
                             java.lang.StringBuilder out)
      • escape

        protected static java.lang.String escape​(java.lang.String s)
      • styleNode

        public java.lang.String styleNode​(ca.uqac.lif.petitpoucet.ProvenanceNode n)