org.shiwa.fgi.iwir.image
Class Utils
java.lang.Object
org.shiwa.fgi.iwir.image.Utils
public class Utils
- extends java.lang.Object
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
indent
public static java.lang.String indent(int indent)
startNodeShape
public static java.lang.String startNodeShape()
endNodeShape
public static java.lang.String endNodeShape()
getType
public static java.lang.String getType(AbstractSimpleCompoundTask task)
retrieveLinksForTasks
public static java.util.List<AbstractLink> retrieveLinksForTasks(java.util.List<AbstractLink> links,
java.util.List<AbstractTask> tasks)
formatName
public static java.lang.String formatName(java.lang.String name)
- Formats the given node name so that DOT handles it correctly.
To handle double quotes correctly it adds to every occurrence a heading
backslash. To handle all other special characters (brackets, at, dot...)
correctly it adds heading and trailing double quotes.
- Parameters:
name
- the node name
- Returns:
- the formatted node name