Class LinkMoverUtilities
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.LinkMoverUtilities
-
public class LinkMoverUtilities extends Object
LinkMoverUtilities
supplies the tools for moving the links.- Since:
- VERSION
- Version:
- $Id$
- Author:
- Jaka Bobnar
-
-
Field Summary
Fields Modifier and Type Field Description static int
LINK_AREA_WIDTH
The area around each link which is still sensitive and enables link movestatic LinkMoverUtilities
linkMoverUtilities
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vector
getAllConnectors(Group group)
Returns a vector of all connectors in the group.Cursor
getCursorForMove()
Returns the mouse cursor for the move that was last processed.static LinkMoverUtilities
getLinkMoverUtilities()
Vector
isMousePositionLinkMovable(int x, int y, Group viewGroup)
Returns the vector containing the connectors which are moved when the links are dragged.
-
-
-
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
-
linkMoverUtilities
public static LinkMoverUtilities linkMoverUtilities
-
-
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 pointery
- the absolute vertical position of the pointerviewGroup
- 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.
-
-