Class ConnectState

java.lang.Object
jsimgraph.controller.UIStateDefault
jsimgraph.controller.ConnectState

public class ConnectState extends UIStateDefault
Author:
Federico Granata Date: 14-lug-2003 Time: 16.59.19
  • Field Details

    • startPoint

      protected JmtCell startPoint
    • start

      protected Point2D start
    • current

      protected Point2D current
    • port

      protected org.jgraph.graph.PortView port
    • firstPort

      protected org.jgraph.graph.PortView firstPort
    • lastPort

      protected org.jgraph.graph.PortView lastPort
    • ml

      protected GraphMouseListener ml
    • pressed

      protected boolean pressed
  • Constructor Details

  • Method Details

    • handlePress

      public void handlePress(MouseEvent e)
      Overrides:
      handlePress in class UIStateDefault
    • handleExit

      public void handleExit(MouseEvent e)
      Overrides:
      handleExit in class UIStateDefault
    • handleEnter

      public void handleEnter(MouseEvent e)
      Overrides:
      handleEnter in class UIStateDefault
    • handleDrag

      public void handleDrag(MouseEvent e)
      Overrides:
      handleDrag in class UIStateDefault
    • handleRelease

      public void handleRelease(MouseEvent e)
      Overrides:
      handleRelease in class UIStateDefault
    • getInPortViewAt

      protected org.jgraph.graph.PortView getInPortViewAt(int x, int y)
      Gets the first portView of the input port of the cell at position
      Parameters:
      x -
      y -
      Returns:
      portView of the input port
    • getOutPortViewAt

      protected org.jgraph.graph.PortView getOutPortViewAt(int x, int y)
      Gets the first portView of the output port of the cell at position
      Parameters:
      x -
      y -
      Returns:
      portView of the output port
    • overlay

      public void overlay(Graphics2D g)