Class StartAndEndPointPathBuilder

java.lang.Object
org.jhotdraw8.geom.AbstractPathBuilder<Void>
org.jhotdraw8.geom.StartAndEndPointPathBuilder
All Implemented Interfaces:
PathBuilder<Void>

public class StartAndEndPointPathBuilder extends AbstractPathBuilder<Void>
StartAndEndPointPathBuilder gets the first start point and last end point of a path, and the derivatives of these points.
Author:
Werner Randelshofer
  • Constructor Details

    • StartAndEndPointPathBuilder

      public StartAndEndPointPathBuilder()
  • Method Details

    • doClosePath

      protected void doClosePath(double lastX, double lastY, double lastMoveToX, double lastMoveToY)
      Specified by:
      doClosePath in class AbstractPathBuilder<Void>
    • doCurveTo

      protected void doCurveTo(double lastX, double lastY, double x1, double y1, double x2, double y2, double x3, double y3)
      Specified by:
      doCurveTo in class AbstractPathBuilder<Void>
    • doPathDone

      protected void doPathDone()
      Specified by:
      doPathDone in class AbstractPathBuilder<Void>
    • doLineTo

      protected void doLineTo(double lastX, double lastY, double x, double y)
      Specified by:
      doLineTo in class AbstractPathBuilder<Void>
    • doMoveTo

      protected void doMoveTo(double x, double y)
      Specified by:
      doMoveTo in class AbstractPathBuilder<Void>
    • doQuadTo

      protected void doQuadTo(double lastX, double lastY, double x1, double y1, double x2, double y2)
      Specified by:
      doQuadTo in class AbstractPathBuilder<Void>
    • getEndTangentX

      public double getEndTangentX()
    • getEndTangentY

      public double getEndTangentY()
    • getEndX

      public double getEndX()
    • getEndY

      public double getEndY()
    • getStartTangentX

      public double getStartTangentX()
    • getStartTangentY

      public double getStartTangentY()
    • getStartX

      public double getStartX()
    • getStartY

      public double getStartY()
    • isIsStartDone

      public boolean isIsStartDone()
    • build

      public @Nullable Void build()
      Description copied from interface: PathBuilder
      Builds something.

      Some implementations may guarantee a non-null return value.