java.lang.Object
com.github.weisj.jsvg.util.ShapeUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Shape
cloneShape
(Shape s) private static void
fixRectangleOrientation
(double[] m, @NotNull Rectangle2D r) static @NotNull Shape
private static @NotNull Shape
intersectByArea
(@NotNull Shape s1, @NotNull Shape s2, boolean keep1, boolean keep2) private static @NotNull Shape
intersectRectShape
(@NotNull Rectangle2D r, @NotNull Shape s, boolean keep1, boolean keep2) static boolean
isInvalidArea
(@NotNull Rectangle2D area) private static @NotNull Shape
transformShape
(double tx, double ty, @NotNull Shape s) static @NotNull Shape
transformShape
(@NotNull Shape s, @NotNull AffineTransform transform) private static Shape
transformShape
(@NotNull AffineTransform tx, @NotNull Shape shape)
-
Field Details
-
NON_RECTILINEAR_TRANSFORM_MASK
private static final int NON_RECTILINEAR_TRANSFORM_MASK- See Also:
-
-
Constructor Details
-
ShapeUtil
private ShapeUtil()
-
-
Method Details
-
isInvalidArea
-
intersect
-
intersectRectShape
@NotNull private static @NotNull Shape intersectRectShape(@NotNull @NotNull Rectangle2D r, @NotNull @NotNull Shape s, boolean keep1, boolean keep2) -
intersectByArea
-
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
-
transformShape
-
cloneShape
-