java.lang.Object
org.jhotdraw8.geom.AbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
org.jhotdraw8.geom.StartAndEndPointsPathBuilder
- All Implemented Interfaces:
PathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
public class StartAndEndPointsPathBuilder
extends AbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
StartAndEndPointPathBuilder gets all start and end points of a path,
and the derivatives of these points.
- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds something.protected voiddoClosePath(double lastX, double lastY, double lastMoveToX, double lastMoveToY) protected voiddoCurveTo(double lastX, double lastY, double x1, double y1, double x2, double y2, double x3, double y3) protected voiddoLineTo(double lastX, double lastY, double x, double y) protected voiddoMoveTo(double x, double y) protected voiddoQuadTo(double lastX, double lastY, double x1, double y1, double x2, double y2) Methods inherited from class org.jhotdraw8.geom.AbstractPathBuilder
arcTo, closePath, curveTo, doArcTo, doSmoothCurveTo, doSmoothQuadTo, getLastCX, getLastCY, getLastMoveToX, getLastMoveToY, getLastPoint, getLastX, getLastY, lineTo, moveTo, needsMoveTo, quadTo, setLastCX, setLastCY, setLastX, setLastY, smoothCurveTo, smoothQuadToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.geom.PathBuilder
circle, counterClockwiseCircle, curveTo, lineTo, moveTo, pathDone, quadTo, smoothCurveTo, smoothQuadTo
-
Constructor Details
-
StartAndEndPointsPathBuilder
public StartAndEndPointsPathBuilder()
-
-
Method Details
-
doClosePath
protected void doClosePath(double lastX, double lastY, double lastMoveToX, double lastMoveToY) - Specified by:
doClosePathin classAbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
-
doCurveTo
protected void doCurveTo(double lastX, double lastY, double x1, double y1, double x2, double y2, double x3, double y3) - Specified by:
doCurveToin classAbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
-
doLineTo
protected void doLineTo(double lastX, double lastY, double x, double y) - Specified by:
doLineToin classAbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
-
doMoveTo
protected void doMoveTo(double x, double y) - Specified by:
doMoveToin classAbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
-
doQuadTo
protected void doQuadTo(double lastX, double lastY, double x1, double y1, double x2, double y2) - Specified by:
doQuadToin classAbstractPathBuilder<StartAndEndPointsPathBuilder.StartAndEndPoints>
-
build
Description copied from interface:PathBuilderBuilds something.Some implementations may guarantee a non-null return value.
-