public abstract class Clipper extends Object
| Constructor and Description |
|---|
Clipper()
|
| Modifier and Type | Method and Description |
|---|---|
static GeneralPath |
clipToRect(Shape
This creates a
GeneralPath representing
s when clipped to
r
|
static GeneralPath |
clipToRect(Shape
This creates a
GeneralPath representing
s when clipped to
r
|
public static GeneralPathclipToRect(Shape s, Rectangle2D r)
GeneralPath representing
s when clipped to
r
s - a shape that you want clipped
r - the rectangle to clip to
GeneralPath enclosing the new shape.
public static GeneralPathclipToRect(Shape s, AffineTransform t, Rectangle2D r)
GeneralPath representing
s when clipped to
r
s - a shape that you want clipped
t - the transform to transform
s by.
This may be null, indicating that s should not be transformed.
r - the rectangle to clip to
GeneralPath enclosing the new shape.