Class AwtShapes

java.lang.Object
org.jhotdraw8.geom.AwtShapes

public class AwtShapes extends Object
  • Method Details

    • buildPathIterator

      public static <T extends PathBuilder<?>> T buildPathIterator(T builder, PathIterator iter)
    • outlineContains

      public static boolean outlineContains(Shape shape, 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

      public static PathIterator emptyPathIterator()
    • pointCoordsToPathIterator

      public static PathIterator pointCoordsToPathIterator(List<Double> coordsList, boolean closed, int windingRule, @Nullable AffineTransform tx)