Class ProMGraphCell

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

    public class ProMGraphCell
    extends org.jgraph.graph.DefaultGraphCell
    implements org.processmining.framework.util.Cleanable, ModelOwner, ProMGraphElement
    See Also:
    Serialized Form
    • Field Summary

      • 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
      ProMGraphCell​(org.processmining.models.graphbased.directed.DirectedGraphNode node, ProMGraphModel model, org.processmining.models.connections.GraphLayoutConnection layoutConnection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ProMGraphPort addPort​(java.awt.geom.Point2D offset, java.lang.Object userObject)
      Utility method to create a port for this cell.
      void cleanUp()  
      boolean equals​(java.lang.Object o)
      This implementation of equals seems to be required by JGraph.
      java.lang.String getLabel()  
      ProMGraphModel getModel()  
      org.processmining.models.graphbased.directed.DirectedGraphNode getNode()  
      java.lang.String getUserObject()  
      JGraphShapeView getView()  
      int hashCode()  
      void setView​(JGraphShapeView view)  
      void updateViewsFromMap()  
      • Methods inherited from class org.jgraph.graph.DefaultGraphCell

        addPort, addPort, changeAttributes, clone, 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, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ProMGraphCell

        public ProMGraphCell​(org.processmining.models.graphbased.directed.DirectedGraphNode node,
                             ProMGraphModel model,
                             org.processmining.models.connections.GraphLayoutConnection layoutConnection)
    • Method Detail

      • getNode

        public org.processmining.models.graphbased.directed.DirectedGraphNode getNode()
      • getUserObject

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

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

        public ProMGraphPort addPort​(java.awt.geom.Point2D offset,
                                     java.lang.Object userObject)
        Description copied from class: org.jgraph.graph.DefaultGraphCell
        Utility method to create a port for this cell. The method adds a port at a fixed relative offset within the cell. If the offset is null then a floating port is added.
        Overrides:
        addPort in class org.jgraph.graph.DefaultGraphCell
        Parameters:
        offset - the offset of the port within the cell
        userObject - the user object of the port cell
        Returns:
        the port created
      • 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