Class ShapeUtil

java.lang.Object
com.github.weisj.jsvg.util.ShapeUtil

public final class ShapeUtil extends Object
  • Field Details

    • NON_RECTILINEAR_TRANSFORM_MASK

      private static final int NON_RECTILINEAR_TRANSFORM_MASK
      See Also:
  • Constructor Details

    • ShapeUtil

      private ShapeUtil()
  • Method Details

    • isInvalidArea

      public static boolean isInvalidArea(@NotNull @NotNull Rectangle2D area)
    • intersect

      @NotNull public static @NotNull Shape intersect(@NotNull @NotNull Shape s1, @NotNull @NotNull Shape s2, boolean keep1, boolean keep2)
    • intersectRectShape

      @NotNull private static @NotNull Shape intersectRectShape(@NotNull @NotNull Rectangle2D r, @NotNull @NotNull Shape s, boolean keep1, boolean keep2)
    • intersectByArea

      @NotNull private static @NotNull Shape intersectByArea(@NotNull @NotNull Shape s1, @NotNull @NotNull Shape s2, boolean keep1, boolean keep2)
    • transformShape

      @NotNull public static @NotNull Shape transformShape(@NotNull @NotNull Shape s, @NotNull @NotNull AffineTransform transform)
    • transformShape

      private static Shape transformShape(@NotNull @NotNull AffineTransform tx, @NotNull @NotNull Shape shape)
    • fixRectangleOrientation

      private static void fixRectangleOrientation(double[] m, @NotNull @NotNull Rectangle2D r)
    • transformShape

      @NotNull private static @NotNull Shape transformShape(double tx, double ty, @NotNull @NotNull Shape s)
    • cloneShape

      private static Shape cloneShape(Shape s)