- All Implemented Interfaces:
PathBuilder<PathMetrics>
-
Field Summary
FieldsFields inherited from class org.jhotdraw8.geom.AbstractPathDataBuilder
commands, coords, offsets, temp, windingRule -
Constructor Summary
ConstructorsConstructorDescriptionCreates a path metrics builder with an accuracy of 1/8 (=0.125) pixels.PathMetricsBuilder(double epsilon) Creates a path metrics builder with the specified accuracy. -
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 x, double y) 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 x, double y) protected ByteArrayListprotected DoubleArrayListprotected IntArrayListbooleanisEmpty()Methods inherited from class org.jhotdraw8.geom.AbstractPathDataBuilder
doPathDone, getWindingRule, setWindingRuleMethods inherited from class org.jhotdraw8.geom.AbstractPathBuilder
arcTo, closePath, curveTo, doArcTo, doSmoothCurveTo, doSmoothQuadTo, getLastCX, getLastCY, getLastMoveToX, getLastMoveToY, getLastPoint, getLastX, getLastY, lineTo, moveTo, needsMoveTo, pathDone, 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, quadTo, smoothCurveTo, smoothQuadTo
-
Field Details
-
lengths
-
-
Constructor Details
-
PathMetricsBuilder
public PathMetricsBuilder()Creates a path metrics builder with an accuracy of 1/8 (=0.125) pixels. -
PathMetricsBuilder
public PathMetricsBuilder(double epsilon) Creates a path metrics builder with the specified accuracy.- Parameters:
epsilon- accuracy
-
-
Method Details
-
doClosePath
protected void doClosePath(double lastX, double lastY, double lastMoveToX, double lastMoveToY) - Overrides:
doClosePathin classAbstractPathDataBuilder<PathMetrics>
-
doCurveTo
protected void doCurveTo(double lastX, double lastY, double x1, double y1, double x2, double y2, double x, double y) - Overrides:
doCurveToin classAbstractPathDataBuilder<PathMetrics>
-
doLineTo
protected void doLineTo(double lastX, double lastY, double x, double y) - Overrides:
doLineToin classAbstractPathDataBuilder<PathMetrics>
-
doMoveTo
protected void doMoveTo(double x, double y) - Overrides:
doMoveToin classAbstractPathDataBuilder<PathMetrics>
-
doQuadTo
protected void doQuadTo(double lastX, double lastY, double x1, double y1, double x, double y) - Overrides:
doQuadToin classAbstractPathDataBuilder<PathMetrics>
-
build
Description copied from interface:PathBuilderBuilds something.Some implementations may guarantee a non-null return value.
-
isEmpty
public boolean isEmpty() -
getCommands
-
getOffsets
-
getCoords
-