Class 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 Detail

      • CenterTarget

        public CenterTarget()
    • 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 interface ConnectorTarget
        Specified by:
        getHeadSite in class AbstractConnectorTarget
        Parameters:
        f - The figure
        x - The x location of the site
        y - The y location of the site
        Returns:
        The head site