Class PerimeterTarget

    • Constructor Detail

      • PerimeterTarget

        public PerimeterTarget()
    • 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:
        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