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:
  • Field Details

    • sourceKey

      protected Object sourceKey
    • targetKey

      protected Object targetKey
    • upperSide

      protected boolean upperSide
    • lowerSide

      protected boolean lowerSide
    • rightSide

      protected boolean rightSide
    • isRing

      protected boolean isRing
    • leftSide

      protected boolean leftSide
    • pointSharedModified

      protected boolean pointSharedModified
    • intersectionVertexPoint

      protected ArrayList<Point2D> intersectionVertexPoint
    • intersectionPoint

      protected Point2D intersectionPoint
    • intersectionEdgePoint

      public ArrayList<Point2D> intersectionEdgePoint
  • Constructor Details

    • JmtEdge

      public JmtEdge()
    • JmtEdge

      public JmtEdge(Object o)
    • JmtEdge

      public JmtEdge(Object sourceKey, Object targetKey, Mediator mediator)
      Creates a new JmtEdge connecting source to target
      Parameters:
      sourceKey - key of source station
      targetKey - key of target station
      mediator -
    • JmtEdge

      public JmtEdge(Object sourceKey, Object targetKey, Boolean isBezier, Mediator mediator)
      Creates a new JmtEdge connecting source to target
      Parameters:
      sourceKey - key of source station
      targetKey - key of target station
      isBezier -
      mediator -
  • Method Details

    • getSourceKey

      public Object getSourceKey()
      Gets source station search key
      Returns:
      source key
    • getTargetKey

      public Object getTargetKey()
      Gets target station search key
      Returns:
      target key
    • getIsBezier

      public Boolean getIsBezier()
      Set the attribute isBezier
    • getIntersectionVertexPoint

      public ArrayList<Point2D> getIntersectionVertexPoint()
    • intersects

      public boolean intersects(org.jgraph.graph.EdgeView viewtmp, Rectangle2D rett)
    • 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

      public Point2D getIntersactionPoint()
    • getIntersactionEdgePoint

      public ArrayList<Point2D> getIntersactionEdgePoint()
    • isRing

      public boolean isRing()
    • setIsRing

      public void setIsRing(boolean value)
    • isPointSharedModified

      public boolean isPointSharedModified()
    • setPointShareModified

      public void setPointShareModified(boolean value)
    • getOffset

      public int getOffset()