org.jgrapht.io
Class VisioExporter<V,E>
- java.lang.Object
-
- org.jgrapht.io.VisioExporter<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
- GraphExporter<V,E>
public class VisioExporter<V,E> extends java.lang.Object implements GraphExporter<V,E>
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:
- Select All (Ctrl-A)
- Right Click the selected items
- Format/Line...
- Line ends: End: (choose an arrow)
-
-
Constructor Summary
Constructors Constructor and Description VisioExporter()Creates a new VisioExporter.VisioExporter(ComponentNameProvider<V> vertexIDProvider)Creates a new VisioExporter with the specified naming policy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexportGraph(Graph<V,E> g, java.io.Writer writer)Exports the specified graph into a Visio CSV file format.ComponentNameProvider<E>getEdgeIDProvider()Get the edge id providerComponentNameProvider<V>getVertexIDProvider()Get the vertex id providervoidsetEdgeIDProvider(ComponentNameProvider<E> edgeIDProvider)Set the edge id provider.voidsetVertexIDProvider(ComponentNameProvider<V> vertexIDProvider)Set the vertex id provider-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.io.GraphExporter
exportGraph, exportGraph
-
-
-
-
Constructor Detail
-
VisioExporter
public VisioExporter(ComponentNameProvider<V> vertexIDProvider)
Creates a new VisioExporter with the specified naming policy.- Parameters:
vertexIDProvider- the vertex id provider to be used for naming the Visio shapes
-
VisioExporter
public VisioExporter()
Creates a new VisioExporter.
-
-
Method Detail
-
exportGraph
public void exportGraph(Graph<V,E> g, java.io.Writer writer)
Exports the specified graph into a Visio CSV file format.- Specified by:
exportGraphin interfaceGraphExporter<V,E>- Parameters:
g- the graph to be exported.writer- the writer to which the graph to be exported.
-
getVertexIDProvider
public ComponentNameProvider<V> getVertexIDProvider()
Get the vertex id provider- Returns:
- the vertex id provider
-
setVertexIDProvider
public void setVertexIDProvider(ComponentNameProvider<V> vertexIDProvider)
Set the vertex id provider- Parameters:
vertexIDProvider- the new vertex id provider. Must not be null.
-
getEdgeIDProvider
public ComponentNameProvider<E> getEdgeIDProvider()
Get the edge id provider- Returns:
- The edge provider
-
setEdgeIDProvider
public void setEdgeIDProvider(ComponentNameProvider<E> edgeIDProvider)
Set the edge id provider.- Parameters:
edgeIDProvider- the new edge id provider. Must not be null.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG