public class PerimeterTarget extends AbstractConnectorTarget
Constructor and Description |
---|
PerimeterTarget() |
Modifier and Type | Method and Description |
---|---|
Site |
getHeadSite(Figure f,
double x,
double y)
Return the nearest site 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