infovis.graph.io
Class VCGGraphWriter

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

public class VCGGraphWriter
extends DOTGraphWriter

Class VCGGraphWriter

Version:
$Revision: 1.8 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
GraphWriterFactory vcg

Field Summary
static String[] VCG_ORIENTATION
           
 
Fields inherited from class infovis.graph.io.DOTGraphWriter
DOT_PROPERTY_PREFIX, 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
VCGGraphWriter(OutputStream out, Graph graph)
           
VCGGraphWriter(OutputStream out, String name, Graph graph)
           
 
Method Summary
 short getOrientation()
          Returns the orientation manages by this interface.
 String getVCG_ORIENTATION()
           
 void setOrientation(short s)
          Sets the orientation of this interface.
 boolean write()
          Abstract method that performs the actual writing of data.
 void writeEdge(int edge)
           
 void writeVertex(int vertex)
           
 
Methods inherited from class infovis.graph.io.DOTGraphWriter
getColors, getEdgeId, getEdgeIdColumn, getLabels, getLayoutRatio, getShapes, getSize, getVertexId, getVertexIdColumn, quoteString, setColors, setEdgeIdColumn, setLabels, setLayoutRatio, setShapes, setSize, setVertexIdColumn
 
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

VCG_ORIENTATION

public static final String[] VCG_ORIENTATION
Constructor Detail

VCGGraphWriter

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

VCGGraphWriter

public VCGGraphWriter(OutputStream out,
                      Graph graph)
Method Detail

writeVertex

public void writeVertex(int vertex)
                 throws IOException
Overrides:
writeVertex in class DOTGraphWriter
Throws:
IOException

writeEdge

public void writeEdge(int edge)
               throws IOException
Overrides:
writeEdge in class DOTGraphWriter
Throws:
IOException

getVCG_ORIENTATION

public String getVCG_ORIENTATION()

write

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

Overrides:
write in class DOTGraphWriter

getOrientation

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

Specified by:
getOrientation in interface Orientable
Overrides:
getOrientation in class DOTGraphWriter
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
Overrides:
setOrientation in class DOTGraphWriter
Parameters:
s - the orientation.


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