Documentation of 'org.jhotdraw.draw.handle.AbstractConnectionHandle' Java class
AbstractConnectionHandle
org.jhotdraw.draw.handle

Class AbstractConnectionHandle

    • Method Detail

      • trackStart

        public void trackStart(java.awt.Point anchor,
                               int modifiersEx)
        Disconnects the connection.
        Parameters:
        anchor - the position where the interaction started
      • trackStep

        public void trackStep(java.awt.Point anchor,
                              java.awt.Point lead,
                              int modifiersEx)
        Finds a new connectableConnector of the connection.
        Parameters:
        anchor - the position where the interaction started
        lead - the current position
      • trackEnd

        public void trackEnd(java.awt.Point anchor,
                             java.awt.Point lead,
                             int modifiersEx)
        Connects the figure to the new connectableConnector. If there is no new connectableConnector the connection reverts to its original one.
        Parameters:
        anchor - the position where the interaction started
        lead - the current position
      • draw

        public void draw(java.awt.Graphics2D g)
        Draws this handle.
        Specified by:
        draw in interface Handle
        Overrides:
        draw in class AbstractHandle
      • repaintConnectors

        public void repaintConnectors()
        Updates the list of connectors that we draw when the user moves or drags the mouse over a figure to which can connect.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.