Class ProMGraphEdge

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, org.jgraph.graph.Edge, org.jgraph.graph.GraphCell, org.processmining.framework.util.Cleanable, ProMGraphElement, ModelOwner

    public class ProMGraphEdge
    extends org.jgraph.graph.DefaultEdge
    implements org.processmining.framework.util.Cleanable, ModelOwner, ProMGraphElement
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jgraph.graph.DefaultEdge

        org.jgraph.graph.DefaultEdge.DefaultRouting, org.jgraph.graph.DefaultEdge.LoopRouting
      • Nested classes/interfaces inherited from interface org.jgraph.graph.Edge

        org.jgraph.graph.Edge.Routing
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ARROW_CROSS  
      static int ARROW_TECHNICAL_CIRCLE  
      static java.lang.String LINEMIDDLE  
      static java.lang.String LINEWIDTH  
      static java.lang.String MIDDLEFILL  
      static java.lang.String NUMBERLINES  
      • Fields inherited from class org.jgraph.graph.DefaultEdge

        source, target
      • Fields inherited from class org.jgraph.graph.DefaultGraphCell

        attributes
      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
    • Constructor Summary

      Constructors 
      Constructor Description
      ProMGraphEdge​(org.processmining.models.graphbased.directed.DirectedGraphEdge<?,​?> edge, ProMGraphModel model, org.processmining.models.connections.GraphLayoutConnection layoutConnection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanUp()  
      boolean equals​(java.lang.Object o)
      This implementation of equals seems to be required by JGraph.
      protected int extractArrowType​(org.processmining.models.graphbased.AttributeMap.ArrowType type)  
      org.processmining.models.graphbased.directed.DirectedGraphEdge<?,​?> getEdge()  
      java.util.List<java.awt.geom.Point2D> getInternalPoints()  
      java.lang.String getLabel()  
      ProMGraphModel getModel()  
      ProMGraphPort getSource()
      Returns the source of the edge.
      ProMGraphPort getTarget()
      Returns the target of the edge.
      java.lang.String getUserObject()  
      JGraphEdgeView getView()  
      int hashCode()  
      void setView​(JGraphEdgeView view)  
      java.lang.String toString()  
      void updateViewsFromMap()  
      • Methods inherited from class org.jgraph.graph.DefaultEdge

        clone, setSource, setTarget
      • Methods inherited from class org.jgraph.graph.DefaultGraphCell

        addPort, addPort, addPort, changeAttributes, getAttributes, getChildren, setAttributes
      • Methods inherited from class javax.swing.tree.DefaultMutableTreeNode

        add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.jgraph.graph.GraphCell

        changeAttributes, getAttributes, setAttributes
    • Constructor Detail

      • ProMGraphEdge

        public ProMGraphEdge​(org.processmining.models.graphbased.directed.DirectedGraphEdge<?,​?> edge,
                             ProMGraphModel model,
                             org.processmining.models.connections.GraphLayoutConnection layoutConnection)
    • Method Detail

      • extractArrowType

        protected int extractArrowType​(org.processmining.models.graphbased.AttributeMap.ArrowType type)
      • getInternalPoints

        public java.util.List<java.awt.geom.Point2D> getInternalPoints()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class javax.swing.tree.DefaultMutableTreeNode
      • getEdge

        public org.processmining.models.graphbased.directed.DirectedGraphEdge<?,​?> getEdge()
      • getUserObject

        public java.lang.String getUserObject()
        Overrides:
        getUserObject in class javax.swing.tree.DefaultMutableTreeNode
      • getSource

        public ProMGraphPort getSource()
        Description copied from class: org.jgraph.graph.DefaultEdge
        Returns the source of the edge.
        Specified by:
        getSource in interface org.jgraph.graph.Edge
        Overrides:
        getSource in class org.jgraph.graph.DefaultEdge
      • getTarget

        public ProMGraphPort getTarget()
        Description copied from class: org.jgraph.graph.DefaultEdge
        Returns the target of the edge.
        Specified by:
        getTarget in interface org.jgraph.graph.Edge
        Overrides:
        getTarget in class org.jgraph.graph.DefaultEdge
      • cleanUp

        public void cleanUp()
        Specified by:
        cleanUp in interface org.processmining.framework.util.Cleanable
      • getLabel

        public java.lang.String getLabel()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        This implementation of equals seems to be required by JGraph. Changing it to anything more meaningful will introduce very strange results.
        Overrides:
        equals in class java.lang.Object