Class BpmnModelPlotter
- java.lang.Object
-
- org.tweetyproject.logics.bpm.plotting.BpmnModelPlotter
-
public class BpmnModelPlotter extends java.lang.Object
This class is for displaying instances of the BpmnModel class graphically- Author:
- Benedikt Knopp
-
-
Constructor Summary
Constructors Constructor Description BpmnModelPlotter(BpmnModel bpmnModel)
Create a new instance for plotting the BpmnModel
-
Method Summary
Modifier and Type Method Description void
addLabel(java.lang.String label)
Add a label to the frame Please note that the labels will be displayed from top to bottom in the order they are added You can add labels before and after executing the createGraph method, so that these labels will be displayed before and after the graph, respectively.void
createGraph(int frameWidth, int frameHeight, double nodeWidth, double nodeHeight, int fontSize)
prepare the graphical representation of the BPMN modelvoid
show()
Display the created graph and all possibly added labels
-
-
-
Constructor Detail
-
BpmnModelPlotter
public BpmnModelPlotter(BpmnModel bpmnModel)
Create a new instance for plotting the BpmnModel- Parameters:
bpmnModel
- the model of interest
-
-
Method Detail
-
createGraph
public void createGraph(int frameWidth, int frameHeight, double nodeWidth, double nodeHeight, int fontSize)
prepare the graphical representation of the BPMN model- Parameters:
frameWidth
- the width of the frameframeHeight
- the height of the framenodeWidth
- the width of nodes in the BPMN modelnodeHeight
- the height of nodes in the BPMN modelfontSize
- the font size
-
addLabel
public void addLabel(java.lang.String label)
Add a label to the frame Please note that the labels will be displayed from top to bottom in the order they are added You can add labels before and after executing the createGraph method, so that these labels will be displayed before and after the graph, respectively.- Parameters:
label
- the textual content that will be displayed in the frame
-
show
public void show()
Display the created graph and all possibly added labels
-
-