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
,DungTheoryPlotter
,PetriNetPlotter
,ReachabilityGraphPlotter
,SerialisationGraphPlotter
A generic class for plotting graphs
- Author:
- Benedikt Knopp
-
Constructor Summary
-
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) layoutvoid
createGraph
(boolean isVertical) Parse the elements of the graph to visual elements and align them in a hierarchical layout in a specified orientation
-
Constructor Details
-
GraphPlotter
-
-
Method Details
-
addLabels
-
createGraph
public void createGraph()Parse the elements of the graph to visual elements and align them in a hierarchical (top-to-bottom) layout -
createGraph
public void createGraph(boolean isVertical) Parse the elements of the graph to visual elements and align them in a hierarchical layout in a specified orientation- Parameters:
isVertical
- If TRUE layout of graph is "top-to-bottom", if FALSE, layout is "left-to-right"
-