Package org.eclipse.gef.dot.internal
Class DotImport
- java.lang.Object
-
- org.eclipse.gef.dot.internal.DotImport
-
public class DotImport extends java.lang.Object
A parser that creates aGraph
withDotAttributes
from a Graphviz DOT string or file. The createdGraph
follows the structure of the DOT input very closely. Subgraphs (including clusters) are represented by aNode
with a nestedGraph
, where the graph holds all attributes (like the name). If a node is used in multiple (sub-)graphs, it will be contained in the graph where it is defined (first occurrence).
-
-
Constructor Summary
Constructors Constructor Description DotImport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.eclipse.gef.graph.Graph>
importDot(java.io.File dotFile)
java.util.List<org.eclipse.gef.graph.Graph>
importDot(java.lang.String dotString)
java.util.List<org.eclipse.gef.graph.Graph>
importDot(org.eclipse.gef.dot.internal.language.dot.DotAst dotAst)
-
-
-
Method Detail
-
importDot
public java.util.List<org.eclipse.gef.graph.Graph> importDot(java.io.File dotFile)
-
importDot
public java.util.List<org.eclipse.gef.graph.Graph> importDot(java.lang.String dotString)
-
importDot
public java.util.List<org.eclipse.gef.graph.Graph> importDot(org.eclipse.gef.dot.internal.language.dot.DotAst dotAst)
-
-