Documentation of 'org.jgrapht.io.VisioExporter' Java class
VisioExporter
org.jgrapht.io

Class VisioExporter<V,E>

  • Type Parameters:
    V - the graph vertex type
    E - 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:

    1. Select All (Ctrl-A)
    2. Right Click the selected items
    3. Format/Line...
    4. Line ends: End: (choose an arrow)
    • 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:
        exportGraph in interface GraphExporter<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

You see the box below because you did not login.