org.shiwa.fgi.iwir.image
Class Utils

java.lang.Object
  extended by org.shiwa.fgi.iwir.image.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String endNodeShape()
           
static java.lang.String formatName(java.lang.String name)
          Formats the given node name so that DOT handles it correctly.
static java.lang.String getType(AbstractSimpleCompoundTask task)
           
static java.lang.String indent(int indent)
           
static java.util.List<AbstractLink> retrieveLinksForTasks(java.util.List<AbstractLink> links, java.util.List<AbstractTask> tasks)
           
static java.lang.String startNodeShape()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

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