V
- the graph vertex typeE
- the graph edge typepublic class VisioExporter<V,E> extends Object implements GraphExporter<V,E>
Tip: By default, the exported graph doesn't show link directions. To show link
directions:
Modifier and Type | Field and Description |
---|---|
protected ComponentNameProvider<E> |
edgeIDProvider
Provides an identifier for an edge.
|
protected ComponentNameProvider<V> |
vertexIDProvider
Provides an identifier for a vertex.
|
Constructor and Description |
---|
VisioExporter()
Creates a new VisioExporter.
|
VisioExporter(ComponentNameProvider<V> vertexIDProvider)
Creates a new VisioExporter with the specified naming policy.
|
Modifier and Type | Method and Description |
---|---|
void |
exportGraph(Graph<V,E> g,
Writer writer)
Exports the specified graph into a Visio CSV file format.
|
ComponentNameProvider<E> |
getEdgeIDProvider()
Get the edge id provider
|
ComponentNameProvider<V> |
getVertexIDProvider()
Get the vertex id provider
|
void |
setEdgeIDProvider(ComponentNameProvider<E> edgeIDProvider)
Set the edge id provider.
|
void |
setVertexIDProvider(ComponentNameProvider<V> vertexIDProvider)
Set the vertex id provider
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportGraph, exportGraph
protected ComponentNameProvider<V> vertexIDProvider
protected ComponentNameProvider<E> edgeIDProvider
public VisioExporter(ComponentNameProvider<V> vertexIDProvider)
vertexIDProvider
- the vertex id provider to be used for naming the Visio shapespublic VisioExporter()
public void exportGraph(Graph<V,E> g, Writer writer)
exportGraph
in interface GraphExporter<V,E>
g
- the graph to be exported.writer
- the writer to which the graph to be exported.public ComponentNameProvider<V> getVertexIDProvider()
public void setVertexIDProvider(ComponentNameProvider<V> vertexIDProvider)
vertexIDProvider
- the new vertex id provider. Must not be null.public ComponentNameProvider<E> getEdgeIDProvider()
public void setEdgeIDProvider(ComponentNameProvider<E> edgeIDProvider)
edgeIDProvider
- the new edge id provider. Must not be null.Copyright © 2017. All rights reserved.