infovis.graph.io
Class DOTGraphWriter
java.lang.Object
infovis.io.AbstractWriter
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
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 |
Methods inherited from class infovis.io.AbstractWriter |
addAllColumnLabels, addColumnLabel, flush, getColumnLabelAt, getColumnLabels, getEncoding, getName, getOut, getWriter, namedType, setEncoding, write, write, writeBuffer, writeln |
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
DOTGraphWriter
public DOTGraphWriter(OutputStream out,
String name,
Graph graph)
DOTGraphWriter
public DOTGraphWriter(OutputStream out,
Graph graph)
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.