Package ca.uqac.lif.cep.provenance
Class DotProvenanceTreeRenderer
- java.lang.Object
-
- ca.uqac.lif.cep.provenance.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
-
Constructor Summary
Constructors Constructor Description DotProvenanceTreeRenderer()
-
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)
-
-
-
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)
-
-