Package diva.canvas.connector
Class PerimeterTarget
- java.lang.Object
-
- diva.canvas.connector.AbstractConnectorTarget
-
- diva.canvas.connector.PerimeterTarget
-
- All Implemented Interfaces:
ConnectorTarget
- Direct Known Subclasses:
ArcTutorial.SelfPTarget,LinkController.LinkTarget,TransitionController.LinkTarget
public class PerimeterTarget extends AbstractConnectorTarget
A connector target that returns sites on the perimeter of a figure.- Version:
- $Id$
- Author:
- John Reekie, Michael Shilman
-
-
Constructor Summary
Constructors Constructor Description PerimeterTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SitegetHeadSite(Figure f, double x, double y)Return the nearest site on the figure if the figure is not a connector-
Methods inherited from class diva.canvas.connector.AbstractConnectorTarget
acceptHead, acceptTail, getHeadSite, getHeadSite, getHeadSite, getTailSite, getTailSite, getTailSite, getTailSite
-
-
-
-
Method Detail
-
getHeadSite
public Site getHeadSite(Figure f, double x, double y)
Return the nearest site on the figure if the figure is not a connector- Specified by:
getHeadSitein interfaceConnectorTarget- Specified by:
getHeadSitein classAbstractConnectorTarget- Parameters:
f- The figurex- The x location of the sitey- The y location of the site- Returns:
- The head site
-
-