public class GraphwizGenerator extends GraphGenerator
logger, PATH_SEP| Constructor and Description |
|---|
GraphwizGenerator(org.ogema.core.application.ApplicationManager am) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(org.ogema.core.model.Resource start,
org.ogema.core.model.Resource end,
EdgeStyle style)
Adds a new, directed edge to be graph.
|
void |
addGroup(Collection<org.ogema.core.model.Resource> resources,
String name)
Creates a group of resources.
|
void |
addNode(org.ogema.core.model.Resource node)
Adds a new node to the graph.
|
void |
addNode(org.ogema.core.model.Resource node,
NodeStyle style)
Adds a new node to the graph.
|
Object |
finish()
Finalize the graph.
|
String |
getGraph()
Gets the constructed graph.
|
void |
init()
Initialize collecting nodes and edges.
|
String |
toString() |
addEdge, generateAllResourcesGraph, generateConnectionsGraph, generateGraph, generateResourcesGraph, getSimpleValuepublic GraphwizGenerator(org.ogema.core.application.ApplicationManager am)
public void init()
GraphGeneratorinit in class GraphGeneratorpublic void addNode(org.ogema.core.model.Resource node)
GraphGeneratoraddNode in class GraphGeneratornode - Resource that is to be represented as a node.public void addNode(org.ogema.core.model.Resource node,
NodeStyle style)
GraphGeneratoraddNode in class GraphGeneratornode - Resource that is to be represented as a node.style - Display style for this node.public void addEdge(org.ogema.core.model.Resource start,
org.ogema.core.model.Resource end,
EdgeStyle style)
GraphGeneratoraddEdge in class GraphGeneratorstart - Start node of the edge.end - End node of the edge.style - draw style used to display the edge.public Object finish()
GraphGeneratorfinish in class GraphGeneratorpublic String getGraph()
GraphGeneratorGraphGenerator.finish()
has been invoked.getGraph in class GraphGeneratorpublic void addGroup(Collection<org.ogema.core.model.Resource> resources, String name)
GraphGeneratoraddGroup in class GraphGeneratorresources - Set of resources to add to the group.name - Name of the group.Copyright © 2018. All rights reserved.