Package org.tweetyproject.graphs.util
Class GraphPlotter<T extends Node,S extends GeneralEdge<T>>
java.lang.Object
org.tweetyproject.graphs.util.GraphPlotter<T,S>
- Type Parameters:
T
- the node class of the graph which is to plotS
- the edge class of the grpah which is to plot
- Direct Known Subclasses:
BpmnModelPlotter
,PetriNetPlotter
,ReachabilityGraphPlotter
A generic class for plotting graphs
- Author:
- Benedikt Knopp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add some description to the panelvoid
Parse the elements of the graph to visual elements and align them in a hierarchical (top-to-bottom) layout
-
Constructor Details
-
GraphPlotter
Create a new instance- Parameters:
plotter
- the ground plottergraph
- the graph to plot
-
-
Method Details
-
createGraph
public void createGraph()Parse the elements of the graph to visual elements and align them in a hierarchical (top-to-bottom) layout -
addLabels
Add some description to the panel- Parameters:
labels
- some labels that will be aligned vertically
-