Class LinkMoverUtilities


  • public class LinkMoverUtilities
    extends Object
    LinkMoverUtilities supplies the tools for moving the links.
    Since:
    VERSION
    Version:
    $Id$
    Author:
    Jaka Bobnar
    • Field Detail

      • LINK_AREA_WIDTH

        public static final int LINK_AREA_WIDTH
        The area around each link which is still sensitive and enables link move
        See Also:
        Constant Field Values
    • Method Detail

      • getLinkMoverUtilities

        public static LinkMoverUtilities getLinkMoverUtilities()
        Returns:
        something
      • getAllConnectors

        public static Vector getAllConnectors​(Group group)
        Returns a vector of all connectors in the group. Method uses a recursive formula to search all the ContainerObjects inside the group given as a parameter.
        Parameters:
        group - the group to be searched for the connectors
        Returns:
        a Vector of all connectors
      • isMousePositionLinkMovable

        public Vector isMousePositionLinkMovable​(int x,
                                                 int y,
                                                 Group viewGroup)
        Returns the vector containing the connectors which are moved when the links are dragged. This metod returns a Vector containing one Connector if parameters define area around a line or two Connectors if they define the area around the knee.
        Parameters:
        x - the absolute horizontal position of the pointer
        y - the absolute vertical position of the pointer
        viewGroup - viewGroup
        Returns:
        a Vector of the connectors that are affected by the move started at the point (x,y)
      • getCursorForMove

        public Cursor getCursorForMove()
        Returns the mouse cursor for the move that was last processed.
        Returns:
        the appropriate cursor.