java.lang.Object
org.jhotdraw8.geom.AwtShapes
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PathBuilder<?>>
@NonNull TbuildFromPathIterator(@NonNull T builder, @NonNull PathIterator iter) static <T extends PathBuilder<?>>
@NonNull TbuildFromPathIterator(@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 PathIteratorpathIteratorFromPointCoords(@NonNull List<Double> coordsList, boolean closed, int windingRule, @Nullable AffineTransform tx)
-
Method Details
-
buildFromPathIterator
public static <T extends PathBuilder<?>> @NonNull T buildFromPathIterator(@NonNull T builder, @NonNull PathIterator iter) -
buildFromPathIterator
public static <T extends PathBuilder<?>> @NonNull T buildFromPathIterator(@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
-
pathIteratorFromPointCoords
public static @NonNull PathIterator pathIteratorFromPointCoords(@NonNull List<Double> coordsList, boolean closed, int windingRule, @Nullable AffineTransform tx)
-