| Constructor and Description |
|---|
ShapeProxy(Shape s)
Create a new proxy for
s. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(Point2D p) |
boolean |
contains(Rectangle2D r) |
Rectangle |
getBounds() |
Rectangle2D |
getBounds2D() |
PathIterator |
getPathIterator(AffineTransform at) |
PathIterator |
getPathIterator(AffineTransform at,
double flatness) |
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(Rectangle2D r) |
void |
set(Shape s)
Replace the wrapped
Shape with s. |
public ShapeProxy(Shape s)
s.public final Rectangle2D getBounds2D()
getBounds2D in interface Shapepublic final boolean contains(double x,
double y)
public final boolean intersects(double x,
double y,
double w,
double h)
intersects in interface Shapepublic final boolean intersects(Rectangle2D r)
intersects in interface Shapepublic final boolean contains(double x,
double y,
double w,
double h)
public final boolean contains(Rectangle2D r)
public final PathIterator getPathIterator(AffineTransform at)
getPathIterator in interface Shapepublic final PathIterator getPathIterator(AffineTransform at, double flatness)
getPathIterator in interface ShapeCopyright © 2015–2021 Fiji. All rights reserved.