Class FXPathPointsBuilder

java.lang.Object
org.jhotdraw8.geom.AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
org.jhotdraw8.geom.FXPathPointsBuilder
All Implemented Interfaces:
PathBuilder<List<javafx.scene.shape.PathElement>>

public class FXPathPointsBuilder extends AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
Creates a square at each move-to and at the end of the specified path.
Author:
Werner Randelshofer
  • Constructor Details

    • FXPathPointsBuilder

      public FXPathPointsBuilder()
    • FXPathPointsBuilder

      public FXPathPointsBuilder(@NonNull List<javafx.scene.shape.PathElement> elements)
    • FXPathPointsBuilder

      public FXPathPointsBuilder(double squareSize, @NonNull List<javafx.scene.shape.PathElement> elements)
  • Method Details

    • build

      public @NonNull List<javafx.scene.shape.PathElement> build()
      Description copied from interface: PathBuilder
      Builds something.

      Some implementations may guarantee a non-null return value.

    • doArcTo

      protected void doArcTo(double lastX, double lastY, double rx, double ry, double xAxisRotation, double x, double y, boolean largeArcFlag, boolean sweepFlag)
      Overrides:
      doArcTo in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • doClosePath

      protected void doClosePath(double lastX, double lastY, double lastMoveToX, double lastMoveToY)
      Specified by:
      doClosePath in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • doCurveTo

      protected void doCurveTo(double lastX, double lastY, double x, double y, double x0, double y0, double x1, double y1)
      Specified by:
      doCurveTo in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • doLineTo

      protected void doLineTo(double lastX, double lastY, double x, double y)
      Specified by:
      doLineTo in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • doMoveTo

      protected void doMoveTo(double x, double y)
      Specified by:
      doMoveTo in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • doPathDone

      protected void doPathDone()
      Specified by:
      doPathDone in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • doQuadTo

      protected void doQuadTo(double lastX, double lastY, double x, double y, double x0, double y0)
      Specified by:
      doQuadTo in class AbstractPathBuilder<List<javafx.scene.shape.PathElement>>
    • getElements

      public List<javafx.scene.shape.PathElement> getElements()