Class ProMGraphEdge
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.jgraph.graph.DefaultGraphCell
-
- org.jgraph.graph.DefaultEdge
-
- org.processmining.models.jgraph.elements.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
-
-
Field Summary
Fields Modifier and Type Field Description static intARROW_CROSSstatic intARROW_TECHNICAL_CIRCLEstatic java.lang.StringLINEMIDDLEstatic java.lang.StringLINEWIDTHstatic java.lang.StringMIDDLEFILLstatic java.lang.StringNUMBERLINES
-
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 voidcleanUp()booleanequals(java.lang.Object o)This implementation of equals seems to be required by JGraph.protected intextractArrowType(org.processmining.models.graphbased.AttributeMap.ArrowType type)org.processmining.models.graphbased.directed.DirectedGraphEdge<?,?>getEdge()java.util.List<java.awt.geom.Point2D>getInternalPoints()java.lang.StringgetLabel()ProMGraphModelgetModel()ProMGraphPortgetSource()Returns the source of the edge.ProMGraphPortgetTarget()Returns the target of the edge.java.lang.StringgetUserObject()JGraphEdgeViewgetView()inthashCode()voidsetView(JGraphEdgeView view)java.lang.StringtoString()voidupdateViewsFromMap()-
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
-
Methods inherited from interface org.processmining.models.jgraph.elements.ProMGraphElement
getAttributes
-
-
-
-
Field Detail
-
ARROW_TECHNICAL_CIRCLE
public static final int ARROW_TECHNICAL_CIRCLE
- See Also:
- Constant Field Values
-
ARROW_CROSS
public static final int ARROW_CROSS
- See Also:
- Constant Field Values
-
LINEMIDDLE
public static final java.lang.String LINEMIDDLE
- See Also:
- Constant Field Values
-
MIDDLEFILL
public static final java.lang.String MIDDLEFILL
- See Also:
- Constant Field Values
-
NUMBERLINES
public static final java.lang.String NUMBERLINES
- See Also:
- Constant Field Values
-
LINEWIDTH
public static final java.lang.String LINEWIDTH
- See Also:
- Constant Field Values
-
-
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)
-
updateViewsFromMap
public void updateViewsFromMap()
- Specified by:
updateViewsFromMapin interfaceProMGraphElement
-
getInternalPoints
public java.util.List<java.awt.geom.Point2D> getInternalPoints()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjavax.swing.tree.DefaultMutableTreeNode
-
getEdge
public org.processmining.models.graphbased.directed.DirectedGraphEdge<?,?> getEdge()
-
getUserObject
public java.lang.String getUserObject()
- Overrides:
getUserObjectin classjavax.swing.tree.DefaultMutableTreeNode
-
getSource
public ProMGraphPort getSource()
Description copied from class:org.jgraph.graph.DefaultEdgeReturns the source of the edge.- Specified by:
getSourcein interfaceorg.jgraph.graph.Edge- Overrides:
getSourcein classorg.jgraph.graph.DefaultEdge
-
getTarget
public ProMGraphPort getTarget()
Description copied from class:org.jgraph.graph.DefaultEdgeReturns the target of the edge.- Specified by:
getTargetin interfaceorg.jgraph.graph.Edge- Overrides:
getTargetin classorg.jgraph.graph.DefaultEdge
-
setView
public void setView(JGraphEdgeView view)
-
getView
public JGraphEdgeView getView()
- Specified by:
getViewin interfaceProMGraphElement
-
cleanUp
public void cleanUp()
- Specified by:
cleanUpin interfaceorg.processmining.framework.util.Cleanable
-
getLabel
public java.lang.String getLabel()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.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:
equalsin classjava.lang.Object
-
getModel
public ProMGraphModel getModel()
- Specified by:
getModelin interfaceModelOwner
-
-