Class LayoutUtils


  • public class LayoutUtils
    extends java.lang.Object
    Utils to copy the layout from one net to another net
    Author:
    dfahland
    • Constructor Summary

      Constructors 
      Constructor Description
      LayoutUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copyLayout​(org.processmining.models.graphbased.AttributeMapOwner oldOwner, org.processmining.models.connections.GraphLayoutConnection oldLayout, org.processmining.models.graphbased.AttributeMapOwner newOwner, org.processmining.models.connections.GraphLayoutConnection newLayout)
      Copy layout attributes of a node/edge to a new node.
      static void setLayout​(PetrinetGraph net, org.processmining.models.connections.GraphLayoutConnection layout)
      GraphLayoutConnection.setLayedOut(boolean) based on layout information in the net, i.e., whether all nodes have a proper position.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LayoutUtils

        public LayoutUtils()
    • Method Detail

      • copyLayout

        public static void copyLayout​(org.processmining.models.graphbased.AttributeMapOwner oldOwner,
                                      org.processmining.models.connections.GraphLayoutConnection oldLayout,
                                      org.processmining.models.graphbased.AttributeMapOwner newOwner,
                                      org.processmining.models.connections.GraphLayoutConnection newLayout)
        Copy layout attributes of a node/edge to a new node.
        Parameters:
        oldOwner -
        oldLayout - old layout connection containing layout information of oldOwner
        newOwner -
        newLayout - new layout connection containing layout information of newOwner
      • setLayout

        public static void setLayout​(PetrinetGraph net,
                                     org.processmining.models.connections.GraphLayoutConnection layout)
        GraphLayoutConnection.setLayedOut(boolean) based on layout information in the net, i.e., whether all nodes have a proper position.
        Parameters:
        net -
        layout -