Package diva.canvas.connector
Class CenterTarget
- java.lang.Object
-
- diva.canvas.connector.AbstractConnectorTarget
-
- diva.canvas.connector.CenterTarget
-
- All Implemented Interfaces:
ConnectorTarget
public class CenterTarget extends AbstractConnectorTarget
An implementation of connector targets that finds center sites.- Version:
- $Id$
- Author:
- John Reekie, Michael Shilman
-
-
Constructor Summary
Constructors Constructor Description CenterTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Site
getHeadSite(Figure f, double x, double y)
Return a center site located 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 a center site located on the figure, if the figure is not a connector.- Specified by:
getHeadSite
in interfaceConnectorTarget
- Specified by:
getHeadSite
in classAbstractConnectorTarget
- Parameters:
f
- The figurex
- The x location of the sitey
- The y location of the site- Returns:
- The head site
-
-