|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.eclipse.draw2d.AbstractLocator
Repositions a Figure attached to a Connection when the Connection is moved.
| Constructor Summary | |
AbstractLocator()
|
|
| Method Summary | |
int |
getGap()
Returns the number of pixels the figure's bounding rectangle is from the connection. |
protected Rectangle |
getNewBounds(Dimension size,
Point center)
Recalculate the location of the figure according to its desired position relative to the center point. |
protected abstract Point |
getReferencePoint()
Returns a reference point used to calculate the location. |
int |
getRelativePosition()
Returns the position of the figure with respect to the center point. |
void |
relocate(IFigure target)
Relocates the given IFigure. |
void |
setGap(int i)
Sets the number of pixels the figure's bounding rectangle is from the connection. |
void |
setRelativePosition(int pos)
Sets the position of the figure with respect to the center point. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractLocator()
| Method Detail |
public int getGap()
protected abstract Point getReferencePoint()
protected Rectangle getNewBounds(Dimension size,
Point center)
public int getRelativePosition()
public void relocate(IFigure target)
Locatorrelocate in interface Locatorpublic void setGap(int i)
public void setRelativePosition(int pos)
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||