public class CenterTarget extends AbstractConnectorTarget
Constructor and Description |
---|
CenterTarget() |
Modifier and Type | Method and Description |
---|---|
Site |
getHeadSite(Figure f,
double x,
double y)
Return a center site located on the figure, if the figure is not a
connector.
|
acceptHead, acceptTail, getHeadSite, getHeadSite, getHeadSite, getTailSite, getTailSite, getTailSite, getTailSite
public Site getHeadSite(Figure f, double x, double y)
getHeadSite
in interface ConnectorTarget
getHeadSite
in class AbstractConnectorTarget
f
- The figurex
- The x location of the sitey
- The y location of the site