public class MidpointLocator extends ConnectionLocator
Connection.| Constructor and Description |
|---|
MidpointLocator(Connection c,
int i)
Constructs a MidpointLocator with associated Connection c and
index i.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getIndex()
Returns this MidpointLocator's index.
|
protected Point |
getReferencePoint()
Returns the point of reference associated with this locator.
|
getAlignment, getConnection, getLocation, setAlignment, setConnectiongetGap, getNewBounds, getRelativePosition, relocate, setGap, setRelativePositionpublic MidpointLocator(Connection c, int i)
c - the connection associated with the locatori - the point from where the connection's midpoint will be
calculated.protected int getIndex()
Connection from where midpoint calculation will be made.protected Point getReferencePoint()
getReferencePoint in class ConnectionLocatorCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.