|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.graphviz.layouter.GraphvizAPI
public final class GraphvizAPI
Defines static methods to access Graphviz via a separate process.
Field Summary | |
---|---|
static String |
PREF_GRAPHVIZ_EXECUTABLE
preference constant for Graphviz executable. |
static String |
PREF_TIMEOUT
preference constant for timeout. |
static int |
PROCESS_DEF_TIMEOUT
default timeout for waiting for Graphviz to give some output. |
static int |
PROCESS_MIN_TIMEOUT
minimal timeout for waiting for Graphviz to give some output. |
Method Summary | |
---|---|
static void |
endProcess()
Closes the currently cached process instances so a new one is created for the next layout run. |
static Process |
startProcess(KGraphDotTransformation.Command command)
Starts a new Graphviz process with the given command. |
static void |
waitForInput(InputStream inputStream,
InputStream errorStream,
IKielerProgressMonitor monitor,
boolean debugMode)
Waits until there is some input from the given input stream, with a customizable timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PREF_GRAPHVIZ_EXECUTABLE
public static final String PREF_TIMEOUT
public static final int PROCESS_DEF_TIMEOUT
public static final int PROCESS_MIN_TIMEOUT
Method Detail |
---|
public static Process startProcess(KGraphDotTransformation.Command command)
command
- the graphviz command to use
public static void endProcess()
public static void waitForInput(InputStream inputStream, InputStream errorStream, IKielerProgressMonitor monitor, boolean debugMode)
inputStream
- input stream from which input is expectederrorStream
- error stream that is queried if there is no inputmonitor
- monitor to which progress is reporteddebugMode
- whether debug mode is active
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |