java.lang.Object
org.jhotdraw8.geom.AwtShapes
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PathBuilder<?>>
@NonNull TbuildPathIterator(@NonNull T builder, @NonNull PathIterator iter) static <T extends PathBuilder<?>>
@NonNull TbuildPathIterator(@NonNull T builder, @NonNull PathIterator iter, boolean doPathDone) static @NonNull PathIteratorstatic booleanoutlineContains(@NonNull Shape shape, @NonNull Point2D.Double p, double tolerance) Returns true, if the outline of this shape contains the specified point.static @NonNull PathIteratorpointCoordsToPathIterator(@NonNull List<Double> coordsList, boolean closed, int windingRule, @Nullable AffineTransform tx)
-
Method Details
-
buildPathIterator
public static <T extends PathBuilder<?>> @NonNull T buildPathIterator(@NonNull T builder, @NonNull PathIterator iter) -
buildPathIterator
public static <T extends PathBuilder<?>> @NonNull T buildPathIterator(@NonNull T builder, @NonNull PathIterator iter, boolean doPathDone) -
outlineContains
public static boolean outlineContains(@NonNull Shape shape, @NonNull Point2D.Double p, double tolerance) Returns true, if the outline of this shape contains the specified point.- Parameters:
shape- The shape.p- The point to be tested.tolerance- The tolerance for the test.- Returns:
- true if contained within tolerance
-
emptyPathIterator
-
pointCoordsToPathIterator
public static @NonNull PathIterator pointCoordsToPathIterator(@NonNull List<Double> coordsList, boolean closed, int windingRule, @Nullable AffineTransform tx)
-