Class JmtEdge
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
org.jgraph.graph.DefaultEdge
jsimgraph.JGraphMod.JmtEdge
- All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, org.jgraph.graph.Edge, org.jgraph.graph.GraphCell
public class JmtEdge
extends org.jgraph.graph.DefaultEdge
Title: JmtEdge connection structure
Description: This class is used to connect two elements into JmtGraph. It is designed to store keys of source and target stations that are used when deleting or copying a connection
- Author:
- Bertoli Marco Date: 17-giu-2005 Time: 19.25.45, Giuseppe De Cicco & Fabio Granara Date: 23-sett-2006
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jgraph.graph.DefaultEdge
org.jgraph.graph.DefaultEdge.DefaultRouting, org.jgraph.graph.DefaultEdge.LoopRoutingNested classes/interfaces inherited from interface org.jgraph.graph.Edge
org.jgraph.graph.Edge.Routing -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Point2Dprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Objectprotected Objectprotected booleanFields inherited from class org.jgraph.graph.DefaultEdge
source, targetFields inherited from class org.jgraph.graph.DefaultGraphCell
attributesFields inherited from class DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the attribute isBezierbooleanbooleanintbooleanGets source station search keyGets target station search keybooleanbooleanintersects(org.jgraph.graph.EdgeView viewtmp, Rectangle2D rett) booleanbooleanintersectsEdge(org.jgraph.graph.EdgeView otherEdgeView) booleanbooleanisRing()voidsetIsRing(boolean value) voidsetPointShareModified(boolean value) Methods inherited from class org.jgraph.graph.DefaultEdge
clone, getSource, getTarget, setSource, setTargetMethods inherited from class org.jgraph.graph.DefaultGraphCell
addPort, addPort, addPort, changeAttributes, getAttributes, getChildren, setAttributesMethods inherited from class 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, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgraph.graph.GraphCell
changeAttributes, getAttributes, setAttributes
-
Field Details
-
sourceKey
-
targetKey
-
upperSide
protected boolean upperSide -
lowerSide
protected boolean lowerSide -
rightSide
protected boolean rightSide -
isRing
protected boolean isRing -
leftSide
protected boolean leftSide -
intersectionVertexPoint
-
intersectionPoint
-
intersectionEdgePoint
-
-
Constructor Details
-
JmtEdge
public JmtEdge() -
JmtEdge
-
JmtEdge
-
JmtEdge
-
-
Method Details
-
getSourceKey
-
getTargetKey
-
getIsBezier
Set the attribute isBezier -
getIntersectionVertexPoint
-
intersects
-
intersectsEdge
public boolean intersectsEdge() -
intersectsEdge
public boolean intersectsEdge(org.jgraph.graph.EdgeView otherEdgeView) -
getLeftSideIntersaction
public boolean getLeftSideIntersaction() -
getRightSideIntersaction
public boolean getRightSideIntersaction() -
getLowerSideIntersaction
public boolean getLowerSideIntersaction() -
getUpperSideIntersaction
public boolean getUpperSideIntersaction() -
getIntersactionPoint
-
getIntersactionEdgePoint
-
isRing
public boolean isRing() -
setIsRing
public void setIsRing(boolean value) -
getOffset
public int getOffset()
-