sem.graphwriter
Class TikzDependencyGraphWriter

java.lang.Object
  extended by sem.graphwriter.TikzDependencyGraphWriter
All Implemented Interfaces:
GraphWriter

public class TikzDependencyGraphWriter
extends java.lang.Object
implements GraphWriter


Constructor Summary
TikzDependencyGraphWriter(java.lang.String file, boolean edgeSegmented, boolean edgeBubble, boolean repositionEdges)
          Create a new GraphWriter for the tikz-dependency format.
 
Method Summary
 void close()
          Close the writer.
static java.lang.String escapeLatex(java.lang.String input)
          Escape special characters and make the String suitable for use in LaTeX.
 void open(java.lang.String file)
          Open the writer (can be done from the constructor).
 void write(Graph graph)
           
 void write(java.util.List<Graph> sentence)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TikzDependencyGraphWriter

public TikzDependencyGraphWriter(java.lang.String file,
                                 boolean edgeSegmented,
                                 boolean edgeBubble,
                                 boolean repositionEdges)
Create a new GraphWriter for the tikz-dependency format.

Parameters:
file - Output file path.
edgeSegmented - Use segmented edges (as opposed to arc edges).
edgeBubble - Use bubbles around edge labels.
repositionEdges - Reposition the edges using a different algorithm.
Method Detail

escapeLatex

public static java.lang.String escapeLatex(java.lang.String input)
Escape special characters and make the String suitable for use in LaTeX.

Parameters:
input - Input String.
Returns:
Output String.

open

public void open(java.lang.String file)
Open the writer (can be done from the constructor).

Specified by:
open in interface GraphWriter

close

public void close()
Close the writer.

Specified by:
close in interface GraphWriter

write

public void write(Graph graph)
Specified by:
write in interface GraphWriter

write

public void write(java.util.List<Graph> sentence)
Specified by:
write in interface GraphWriter