Search this API

y.layout
Class LayoutGraphWriter

java.lang.Object
  extended by y.layout.LayoutGraphWriter

public final class LayoutGraphWriter
extends Object

This class writes out the basic layout and structure as well as existing grouping information of a LayoutGraph instance or a pair of Graph and GraphLayout instances in GML format. This class is for debugging purposes only and should not be used for production use.


Constructor Summary
LayoutGraphWriter(Graph graph)
          Creates a new instance of LayoutGraphWriter that writes out the structural Graph information only.
LayoutGraphWriter(Graph graph, GraphLayout layout)
          Creates a new instance of LayoutGraphWriter that writes out the structural and layout information of the Graph and GraphLayout instances.
LayoutGraphWriter(LayoutGraph graph)
          Creates a new instance of LayoutGraphWriter that writes out the structural and layout information of the LayoutGraph.
 
Method Summary
 void write(File file)
          Write the graph to a File in GML Format which can be read e.g. by yEd.
 void write(String file)
          Write the graph to a File in GML Format which can be read e.g. by yEd.
 void write(Writer writer)
          Write the graph to a Writer in GML Format which can be read e.g. by yEd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutGraphWriter

public LayoutGraphWriter(Graph graph)
Creates a new instance of LayoutGraphWriter that writes out the structural Graph information only.


LayoutGraphWriter

public LayoutGraphWriter(LayoutGraph graph)
Creates a new instance of LayoutGraphWriter that writes out the structural and layout information of the LayoutGraph.


LayoutGraphWriter

public LayoutGraphWriter(Graph graph,
                         GraphLayout layout)
Creates a new instance of LayoutGraphWriter that writes out the structural and layout information of the Graph and GraphLayout instances.

Method Detail

write

public void write(String file)
           throws IOException
Write the graph to a File in GML Format which can be read e.g. by yEd.

Throws:
IOException

write

public void write(File file)
           throws IOException
Write the graph to a File in GML Format which can be read e.g. by yEd.

Throws:
IOException

write

public void write(Writer writer)
           throws IOException
Write the graph to a Writer in GML Format which can be read e.g. by yEd.

Throws:
IOException

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.