org.jscience.computing.graph.external
Class VisioExporter

java.lang.Object
  extended by org.jscience.computing.graph.external.VisioExporter

public class VisioExporter
extends java.lang.Object

Exports a graph to a csv format that can be imported into MS Visio.

Tip: By default, the exported graph doesn't show link directions. To show link directions:

  1. Select All (Ctrl-A)
  2. Right Click the selected items
  3. Format/Line...
  4. Line ends: End: (choose an arrow)


Nested Class Summary
static interface VisioExporter.VertexNameProvider
          Assigns a display name for each of the graph vertices.
 
Constructor Summary
VisioExporter()
          Creates a new VisioExporter object.
VisioExporter(VisioExporter.VertexNameProvider vertexNameProvider)
          Creates a new VisioExporter object with the specified naming policy.
 
Method Summary
 void export(java.io.OutputStream output, Graph g)
          Exports the specified graph into a Visio csv file format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisioExporter

public VisioExporter(VisioExporter.VertexNameProvider vertexNameProvider)
Creates a new VisioExporter object with the specified naming policy.

Parameters:
vertexNameProvider - the vertex name provider to be used for naming the Visio shapes.

VisioExporter

public VisioExporter()
Creates a new VisioExporter object.

Method Detail

export

public void export(java.io.OutputStream output,
                   Graph g)
Exports the specified graph into a Visio csv file format.

Parameters:
output - the print stream to which the graph to be exported.
g - the graph to be exported.