public class Dot
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Dot.DotFormat |
static class |
Dot.FileType |
static class |
Dot.Version |
| Modifier and Type | Field and Description |
|---|---|
static Dot.DotFormat |
DEFAULT_DOT_FORMAT |
static boolean |
dotDebug |
static boolean |
dotVerbose |
static float |
MCLIMIT |
static int |
NSLIMIT |
static int |
NSLIMIT1 |
static Dot.Version |
VERSION |
| Constructor and Description |
|---|
Dot() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
askDot(Dot.DotFormat type,
java.lang.String input) |
static java.lang.String |
chopQuotes(java.lang.String str) |
static java.lang.String |
colorToDotHSB(java.awt.Color c)
Converts a Java
Color instance into a dot comprehensible
string. |
static Dot.DotFormat |
int2DotFormat(int ord) |
static java.lang.String |
makeDotInput(IOPGraph graph,
java.util.Collection<IOPSubgraph> subgraphs,
java.util.Collection<IOPNode> nodes,
java.util.Map<java.lang.Integer,IOPEdge> edgeMap)
Computes the dot description of a
IOPGraph instance from
its nodes and edges. |
static boolean |
queryDot(Dot.DotFormat type,
java.io.File dotIn,
java.io.File dotOut)
The method to use to query the dot graph layout program.
|
static java.lang.String |
requestDot(Dot.DotFormat type,
java.lang.String input) |
static java.awt.Color |
rgba2Color(java.lang.String text) |
public static final Dot.Version VERSION
public static boolean dotDebug
public static boolean dotVerbose
public static int NSLIMIT
public static int NSLIMIT1
public static float MCLIMIT
public static final Dot.DotFormat DEFAULT_DOT_FORMAT
public static Dot.DotFormat int2DotFormat(int ord)
public static java.lang.String colorToDotHSB(java.awt.Color c)
Color instance into a dot comprehensible
string.c - the Java color instance to be converted
(using WHITE if this is null)public static java.awt.Color rgba2Color(java.lang.String text)
public static java.lang.String makeDotInput(IOPGraph graph, java.util.Collection<IOPSubgraph> subgraphs, java.util.Collection<IOPNode> nodes, java.util.Map<java.lang.Integer,IOPEdge> edgeMap)
IOPGraph instance from
its nodes and edges.graph - the IOPGraphsubgraphs - Collection of IOPSubgraphs of the graph.nodes - Collection of IOPNodes of the graph.edgeMap - a map enumerating the IOPEdges of the graph.public static boolean queryDot(Dot.DotFormat type, java.io.File dotIn, java.io.File dotOut)
type - one of the integer codes indicating the desired format.dotIn - the file to process.dotOut - the output file.makeDotInput(g2d.graph.IOPGraph, java.util.Collection<g2d.graph.IOPSubgraph>, java.util.Collection<g2d.graph.IOPNode>, java.util.Map<java.lang.Integer, g2d.graph.IOPEdge>)public static java.lang.String requestDot(Dot.DotFormat type, java.lang.String input)
public static java.lang.String askDot(Dot.DotFormat type, java.lang.String input)
public static java.lang.String chopQuotes(java.lang.String str)