Interface Locator

All Known Implementing Classes:
AbstractLocator, BoundsLocator, PointLocator

public interface Locator
A locator encapsulates a strategy for locating a point on a Figure.
Author:
Werner Randelshofer
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.geometry.Point2D
    locate(Figure owner)
    Locates a position on the provided figure.
    javafx.geometry.Point2D
    locate(Figure owner, Figure dependent)
    Locates a position on the provided figure relative to the dependent figure.
  • Method Details

    • locate

      javafx.geometry.Point2D locate(Figure owner)
      Locates a position on the provided figure.
      Parameters:
      owner - provided figure
      Returns:
      a point on the figure in local coordinates.
    • locate

      javafx.geometry.Point2D locate(Figure owner, Figure dependent)
      Locates a position on the provided figure relative to the dependent figure.
      Parameters:
      owner - provided figure
      dependent - dependent figure
      Returns:
      a point on the figure in local coordinates.