|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.handles.ConnectionHandleLocator
This locator is used to locate all the handles around the shape the closest distance to the mouse location. It spaces the handles a certain distance apart. Call setEastWestSouth(true) to indicate that the connection handle can only be located on the east, west, or south side of the reference figure.
| Constructor Summary | |
ConnectionHandleLocator(IFigure reference,
Point cursorPosition)
Constructor for ConnectionHandleLocator. |
|
| Method Summary | |
void |
addHandle(ConnectionHandle handle)
Adds a connection handle to the list of handles. |
int |
getBorderSide()
Gets the side (West, South, or East) on which the handles will appear, using the cursor position passed in to the constructor. |
protected Point |
getCursorPosition()
Gets the cursor position. |
protected IFigure |
getReference()
Gets the reference figure. |
boolean |
isEastWestSouth()
Can the connection handle can only be located on the east, west, or south side of the reference figure. |
void |
relocate(IFigure target)
Locates the figure on the appropriate edge of the parent depending on which side is closest to the reference point. |
void |
setEastWestSouth(boolean eastWestSouth)
Set to true if the connection handle can only be located on the east, west, or south side of the reference figure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionHandleLocator(IFigure reference,
Point cursorPosition)
reference - the figurecursorPosition - the handles will be located on the border of the shape as
close to this position as possible| Method Detail |
public void addHandle(ConnectionHandle handle)
handle - the ConnectionHandle to addpublic int getBorderSide()
public void relocate(IFigure target)
relocate in interface LocatorLocator.relocate(org.eclipse.draw2d.IFigure)protected IFigure getReference()
protected Point getCursorPosition()
public boolean isEastWestSouth()
public void setEastWestSouth(boolean eastWestSouth)
eastWestSouth - The bEastWestSouth to set.
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.