|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.client.Graphviz
public abstract class Graphviz
A utility class that understands how to create
graphviz graphs from a set of
ServiceEdges
, or from other
data structures.
Field Summary | |
---|---|
static String |
PROP_HIGHLIGHT
Property name. |
static String |
PROP_HIGHLIGHT_COLOR
Property name. |
static String |
PROP_IMAGEMAP
Property name. |
static String |
PROP_RANKDIR
Property name. |
Constructor Summary | |
---|---|
Graphviz()
|
Method Summary | |
---|---|
static String |
createDataTypesGraph(MobyDataType[] dataTypes,
Properties props)
Creates a graph connecting 'dataTypes' using their ISA relationship and showing also their HASA children. |
static String |
createServicesGraph(ServicesEdge[][] paths,
int fromPath,
int toPath,
String[] pathNames,
Properties props)
Creates a graph connecting Moby services as defined in a set of the graph 'paths'. |
static String |
createServicesGraph(ServicesEdge[] edges,
Properties props)
Creates a graph connecting Moby services as defined in a set of the graph 'edges'. |
static String |
createServiceTypesGraph(MobyServiceType[] serviceTypes,
Properties props)
Creates a graph connecting 'serviceTypes' using their ISA relationship. |
static String |
quoteIt(String name)
Surround given text by quotes. |
static String |
trName(String name)
Replaces dashes by underscores in 'name'. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_RANKDIR
public static final String PROP_HIGHLIGHT
public static final String PROP_HIGHLIGHT_COLOR
PROP_HIGHLIGHT
. Default is "cyan2".
public static final String PROP_IMAGEMAP
Constructor Detail |
---|
public Graphviz()
Method Detail |
---|
public static String createServicesGraph(ServicesEdge[] edges, Properties props)
edges
- represent services and their connectors in the
created graph; some edges may be of type DataServiceEdge
(which is a subclass of ServicesEdge) - those
represent a special type of connection betweern a service and
an input or ouput data typeprops
- are some properties that can influence how the
graph will look like; see the property names elswhere in this
API what properties are understood
public static String createServicesGraph(ServicesEdge[][] paths, int fromPath, int toPath, String[] pathNames, Properties props)
paths
- is an array of edges; each set of edges defines
one path; some edges may be of type DataServiceEdge
(which is a subclass of ServicesEdge) - those represent a
special type of connection betweern a service and an input or
ouput data typefromPath
- a starting index in array 'paths'toPath
- an ending index in array 'paths'pathNames
- gives names of 'paths' (it may be used to
label individual graph clusters); the array should have the
same dimension as 'path' - and their elements should correspond
to each otherprops
- are some properties that can influence how the
graph will look like; see the property names elswhere in this
API what properties are understood
public static String createDataTypesGraph(MobyDataType[] dataTypes, Properties props)
dataTypes
- represent nodes in the created graphprops
- are some properties that can influence how the
graph will look like; see the property names elswhere in this
API what properties are understood
public static String createServiceTypesGraph(MobyServiceType[] serviceTypes, Properties props)
serviceTypes
- represent nodes in the created graphprops
- are some properties that can influence how the
graph will look like; see the property names elswhere in this
API what properties are understood
public static String trName(String name)
name
- to be changed
public static String quoteIt(String name)
name
- to be quoted
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |