Class ProMGraphCell
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.jgraph.graph.DefaultGraphCell
-
- org.processmining.models.jgraph.elements.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
-
-
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 ProMGraphPortaddPort(java.awt.geom.Point2D offset, java.lang.Object userObject)Utility method to create a port for this cell.voidcleanUp()booleanequals(java.lang.Object o)This implementation of equals seems to be required by JGraph.java.lang.StringgetLabel()ProMGraphModelgetModel()org.processmining.models.graphbased.directed.DirectedGraphNodegetNode()java.lang.StringgetUserObject()JGraphShapeViewgetView()inthashCode()voidsetView(JGraphShapeView view)voidupdateViewsFromMap()-
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
-
Methods inherited from interface org.processmining.models.jgraph.elements.ProMGraphElement
getAttributes
-
-
-
-
Constructor Detail
-
ProMGraphCell
public ProMGraphCell(org.processmining.models.graphbased.directed.DirectedGraphNode node, ProMGraphModel model, org.processmining.models.connections.GraphLayoutConnection layoutConnection)
-
-
Method Detail
-
updateViewsFromMap
public void updateViewsFromMap()
- Specified by:
updateViewsFromMapin interfaceProMGraphElement
-
getNode
public org.processmining.models.graphbased.directed.DirectedGraphNode getNode()
-
getUserObject
public java.lang.String getUserObject()
- Overrides:
getUserObjectin classjavax.swing.tree.DefaultMutableTreeNode
-
setView
public void setView(JGraphShapeView view)
-
cleanUp
public void cleanUp()
- Specified by:
cleanUpin interfaceorg.processmining.framework.util.Cleanable
-
addPort
public ProMGraphPort addPort(java.awt.geom.Point2D offset, java.lang.Object userObject)
Description copied from class:org.jgraph.graph.DefaultGraphCellUtility 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:
addPortin classorg.jgraph.graph.DefaultGraphCell- Parameters:
offset- the offset of the port within the celluserObject- the user object of the port cell- Returns:
- the port created
-
getLabel
public java.lang.String getLabel()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getModel
public ProMGraphModel getModel()
- Specified by:
getModelin interfaceModelOwner
-
getView
public JGraphShapeView getView()
- Specified by:
getViewin interfaceProMGraphElement
-
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:
equalsin classjava.lang.Object
-
-