Package com.github.weisj.jsvg.util
Class ShapeUtil
- java.lang.Object
-
- com.github.weisj.jsvg.util.ShapeUtil
-
public final class ShapeUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
NON_RECTILINEAR_TRANSFORM_MASK
-
Constructor Summary
Constructors Modifier Constructor Description private
ShapeUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.awt.Shape
cloneShape(java.awt.Shape s)
private static void
fixRectangleOrientation(double[] m, @NotNull java.awt.geom.Rectangle2D r)
static @NotNull java.awt.Shape
intersect(@NotNull java.awt.Shape s1, @NotNull java.awt.Shape s2, boolean keep1, boolean keep2)
private static @NotNull java.awt.Shape
intersectByArea(@NotNull java.awt.Shape s1, @NotNull java.awt.Shape s2, boolean keep1, boolean keep2)
private static @NotNull java.awt.Shape
intersectRectShape(@NotNull java.awt.geom.Rectangle2D r, @NotNull java.awt.Shape s, boolean keep1, boolean keep2)
static boolean
isInvalidArea(@NotNull java.awt.geom.Rectangle2D area)
private static @NotNull java.awt.Shape
transformShape(double tx, double ty, @NotNull java.awt.Shape s)
private static java.awt.Shape
transformShape(@NotNull java.awt.geom.AffineTransform tx, @NotNull java.awt.Shape shape)
static @NotNull java.awt.Shape
transformShape(@NotNull java.awt.Shape s, @NotNull java.awt.geom.AffineTransform transform)
-
-
-
Field Detail
-
NON_RECTILINEAR_TRANSFORM_MASK
private static final int NON_RECTILINEAR_TRANSFORM_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
isInvalidArea
public static boolean isInvalidArea(@NotNull @NotNull java.awt.geom.Rectangle2D area)
-
intersect
@NotNull public static @NotNull java.awt.Shape intersect(@NotNull @NotNull java.awt.Shape s1, @NotNull @NotNull java.awt.Shape s2, boolean keep1, boolean keep2)
-
intersectRectShape
@NotNull private static @NotNull java.awt.Shape intersectRectShape(@NotNull @NotNull java.awt.geom.Rectangle2D r, @NotNull @NotNull java.awt.Shape s, boolean keep1, boolean keep2)
-
intersectByArea
@NotNull private static @NotNull java.awt.Shape intersectByArea(@NotNull @NotNull java.awt.Shape s1, @NotNull @NotNull java.awt.Shape s2, boolean keep1, boolean keep2)
-
transformShape
@NotNull public static @NotNull java.awt.Shape transformShape(@NotNull @NotNull java.awt.Shape s, @NotNull @NotNull java.awt.geom.AffineTransform transform)
-
transformShape
private static java.awt.Shape transformShape(@NotNull @NotNull java.awt.geom.AffineTransform tx, @NotNull @NotNull java.awt.Shape shape)
-
fixRectangleOrientation
private static void fixRectangleOrientation(double[] m, @NotNull @NotNull java.awt.geom.Rectangle2D r)
-
transformShape
@NotNull private static @NotNull java.awt.Shape transformShape(double tx, double ty, @NotNull @NotNull java.awt.Shape s)
-
cloneShape
private static java.awt.Shape cloneShape(java.awt.Shape s)
-
-