Class PathLocator

java.lang.Object
org.jhotdraw8.draw.locator.PathLocator

public class PathLocator extends Object
A locator that specifies a point that is relative to the path of a PathIterableFigure.

The locator has the following parameters:

relativePath
Defines a position on the path of the figure, relative to to the length of the path. Where 0.0 lies at the start of the path and 1.0 at the end.
offset
Defines an absolute distance perpendicular to the path at the relativePath position. Where 0.0 lies on the path, and a positive value lies to the right side of the path, and a negative to the left side of the path.
Author:
Werner Randelshofer
  • Constructor Details

    • PathLocator

      public PathLocator()