public class GDOTImporterDOT extends GDOTImporter
GDOTImporter.Node, GDOTImporter.StringTokenizer| Modifier and Type | Field and Description |
|---|---|
static int |
INCH_TO_PIXEL |
graph, height| Constructor and Description |
|---|
GDOTImporterDOT() |
| Modifier and Type | Method and Description |
|---|---|
GElement |
createGraphEdge(String[] tokens) |
GElement |
createGraphNode(String[] tokens) |
Vector2D[] |
parseControlPoints(String s) |
void |
parseGraphHeight(String[] tokens) |
GElement |
parseLine(String line)
Example of DOT output:
digraph {
node [label="\N"];
graph [bb="0,0,229,324"];
compilationUnit [pos="162,306", width="1.64", height="0.50"];
packageDefinition [pos="70,234", width="1.78", height="0.50"];
identifier [pos="83,162", width="1.06", height="0.50"];
IDENT [pos="144,90", width="0.94", height="0.50"];
DOT [pos="65,90", width="0.75", height="0.50"];
A [pos="65,18", width="0.75", height="0.50"];
compilationUnit -> packageDefinition [pos="e,92,251 140,289 128,280 113,268 100,258"];
packageDefinition -> identifier [pos="e,80,180 73,216 74,208 76,199 78,190"];
identifier -> IDENT [pos="e,126,105 92,144 99,134 109,123 119,112"];
identifier -> DOT [pos="e,69,108 78,144 76,136 74,127 72,118"];
identifier -> IDENT [pos="e,135,108 102,146 111,137 120,126 129,116"];
IDENT -> compilationUnit [pos="e,160,288 145,108 149,146 156,233 159,278"];
DOT -> A [pos="e,65,36 65,72 65,64 65,55 65,46"];
A -> compilationUnit [pos="e,171,288 92,21 121,26 166,40 187,72 229,135 196,232 175,279"];
A -> packageDefinition [pos="e,56,216 51,34 43,44 33,58 29,72 15,118 20,134 36,180 39,190 45,199 50,208"];
}
|
generateGraph, isFloatString, parseTokenspublic static final int INCH_TO_PIXEL
public GElement parseLine(String line) throws IOException
parseLine in class GDOTImporterIOExceptionpublic void parseGraphHeight(String[] tokens) throws IOException
IOExceptionpublic GElement createGraphNode(String[] tokens) throws IOException
createGraphNode in class GDOTImporterIOExceptionpublic GElement createGraphEdge(String[] tokens) throws IOException
createGraphEdge in class GDOTImporterIOExceptionpublic Vector2D[] parseControlPoints(String s) throws IOException
IOExceptionCopyright © 2013. All rights reserved.