public class VisJsGenerator extends GraphGenerator
logger, PATH_SEP| Constructor and Description |
|---|
VisJsGenerator(org.ogema.core.logging.OgemaLogger logger,
org.ogema.core.tools.SerializationManager serMan) |
| 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.
|
Object |
generateAllResourcesGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc) |
Object |
generateConnectionsGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc) |
Object |
generateResourcesGraph(Class<? extends org.ogema.core.model.Resource> topLevelType,
org.ogema.core.resourcemanager.ResourceAccess resAcc) |
String |
getGraph()
Gets the constructed graph.
|
void |
init()
Initialize collecting nodes and edges.
|
void |
setPhysConfigurationEnabled(boolean enabled) |
addEdge, generateGraph, getSimpleValuepublic VisJsGenerator(org.ogema.core.logging.OgemaLogger logger,
org.ogema.core.tools.SerializationManager serMan)
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 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.public Object generateAllResourcesGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc)
generateAllResourcesGraph in class GraphGeneratorpublic Object generateResourcesGraph(Class<? extends org.ogema.core.model.Resource> topLevelType, org.ogema.core.resourcemanager.ResourceAccess resAcc)
generateResourcesGraph in class GraphGeneratorpublic Object generateConnectionsGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc)
generateConnectionsGraph in class GraphGeneratorpublic Object finish()
GraphGeneratorfinish in class GraphGeneratorpublic String getGraph()
GraphGeneratorGraphGenerator.finish()
has been invoked.getGraph in class GraphGeneratorpublic void setPhysConfigurationEnabled(boolean enabled)
Copyright © 2019. All rights reserved.