infovis.graph.io
Class DOTGraphWriter

java.lang.Object
  extended by infovis.io.AbstractWriter
      extended by infovis.graph.io.DOTGraphWriter
All Implemented Interfaces:
Orientable, SwingConstants
Direct Known Subclasses:
PajekGraphWriter, VCGGraphWriter

public class DOTGraphWriter
extends AbstractWriter
implements Orientable

Class DOTGraphWriter

Version:
$Revision: 1.17 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
GraphWriterFactory dot GraphViz

Field Summary
static String DOT_PROPERTY_PREFIX
           
static String ID_COLUMN
           
 
Fields inherited from interface infovis.visualization.Orientable
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
DOTGraphWriter(OutputStream out, Graph graph)
           
DOTGraphWriter(OutputStream out, String name, Graph graph)
           
 
Method Summary
 VisualColor getColors()
           
 String getEdgeId(int edge)
           
 StringColumn getEdgeIdColumn()
           
 Column getLabels()
           
 String getLayoutRatio()
           
 short getOrientation()
          Returns the orientation manages by this interface.
 ShapeColumn getShapes()
           
 Dimension getSize()
           
 String getVertexId(int vertex)
           
 StringColumn getVertexIdColumn()
           
 String quoteString(String s)
           
 void setColors(VisualColor colors)
           
 void setEdgeIdColumn(StringColumn edgeIdColumn)
           
 void setLabels(Column labels)
           
 void setLayoutRatio(String string)
           
 void setOrientation(short s)
          Sets the orientation of this interface.
 void setShapes(ShapeColumn column)
           
 void setSize(Dimension dimension)
           
 void setVertexIdColumn(StringColumn vertexIdColumn)
           
 boolean write()
          Abstract method that performs the actual writing of data.
 void writeEdge(int edge)
           
 void writeVertex(int vertex)
           
 
Methods inherited from class infovis.io.AbstractWriter
addAllColumnLabels, addColumnLabel, flush, getColumnLabelAt, getColumnLabels, getEncoding, getName, getOut, getWriter, namedType, setEncoding, write, write, writeBuffer, writeln
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOT_PROPERTY_PREFIX

public static final String DOT_PROPERTY_PREFIX
See Also:
Constant Field Values

ID_COLUMN

public static final String ID_COLUMN
See Also:
Constant Field Values
Constructor Detail

DOTGraphWriter

public DOTGraphWriter(OutputStream out,
                      String name,
                      Graph graph)

DOTGraphWriter

public DOTGraphWriter(OutputStream out,
                      Graph graph)
Method Detail

getVertexId

public String getVertexId(int vertex)

getEdgeId

public String getEdgeId(int edge)

writeVertex

public void writeVertex(int vertex)
                 throws IOException
Throws:
IOException

writeEdge

public void writeEdge(int edge)
               throws IOException
Throws:
IOException

quoteString

public String quoteString(String s)

write

public boolean write()
Description copied from class: AbstractWriter
Abstract method that performs the actual writing of data.

Specified by:
write in class AbstractWriter

getShapes

public ShapeColumn getShapes()

setShapes

public void setShapes(ShapeColumn column)

getSize

public Dimension getSize()

setSize

public void setSize(Dimension dimension)

getLabels

public Column getLabels()

setLabels

public void setLabels(Column labels)

getOrientation

public short getOrientation()
Description copied from interface: Orientable
Returns the orientation manages by this interface.

Specified by:
getOrientation in interface Orientable
Returns:
the orientation manages by this interface

setOrientation

public void setOrientation(short s)
Description copied from interface: Orientable
Sets the orientation of this interface.

Specified by:
setOrientation in interface Orientable
Parameters:
s - the orientation.

getLayoutRatio

public String getLayoutRatio()

setLayoutRatio

public void setLayoutRatio(String string)

getEdgeIdColumn

public StringColumn getEdgeIdColumn()

setEdgeIdColumn

public void setEdgeIdColumn(StringColumn edgeIdColumn)

getVertexIdColumn

public StringColumn getVertexIdColumn()

setVertexIdColumn

public void setVertexIdColumn(StringColumn vertexIdColumn)

getColors

public VisualColor getColors()

setColors

public void setColors(VisualColor colors)


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.