Class 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 model
      void show()
      Display the created graph and all possibly added labels
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 frame
        frameHeight - the height of the frame
        nodeWidth - the width of nodes in the BPMN model
        nodeHeight - the height of nodes in the BPMN model
        fontSize - 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