mxGraph 1.10.1.1


com.mxgraph.io.gd
Class mxGdDocument

java.lang.Object
  extended by com.mxgraph.io.gd.mxGdDocument

public class mxGdDocument
extends Object

This class is a representation of a GD file.
Allows access to the nodes and edges of the graph.


Nested Class Summary
static class mxGdDocument.mxGDParseState
          Represents the different states in the parse of a file.
 
Constructor Summary
mxGdDocument()
           
 
Method Summary
 String getDocumentString()
           
 List<mxGdEdge> getEdges()
           
 List<mxGdNode> getNodes()
           
 void parse(String gd)
          Parses the String with the file content and loads into the document, the data of nodes and edges.
 void setEdges(List<mxGdEdge> edges)
           
 void setNodes(List<mxGdNode> nodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGdDocument

public mxGdDocument()
Method Detail

getEdges

public List<mxGdEdge> getEdges()
Returns:
Returns the list of edges.

getNodes

public List<mxGdNode> getNodes()
Returns:
Returns the list of nodes.

setEdges

public void setEdges(List<mxGdEdge> edges)

setNodes

public void setNodes(List<mxGdNode> nodes)

parse

public void parse(String gd)
Parses the String with the file content and loads into the document, the data of nodes and edges.

Parameters:
gd - String with the file content.

getDocumentString

public String getDocumentString()
Returns:
Returns the String representation of the document.

mxGraph 1.10.1.1


Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.