Constructor and Description |
---|
Region() |
Region(int x,
int y,
int w,
int h) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPoint(int xc,
int yc)
Returns true if the point specified by the given X and Y coordinates
is contained within this region.
|
boolean |
equals(Object o) |
int |
hashCode() |
Region |
intersection(Region r)
Returns a Region representing the intersection of this Region with the
given Region.
|
boolean |
intersects(Region r) |
String |
toString() |
public boolean intersects(Region r)
r
- the region to check for intersectionRectangle.intersects(java.awt.Rectangle)
public Region intersection(Region r)
r
- the region for which to calculate an intersection (or overlap)public boolean containsPoint(int xc, int yc)
xc
- the integer X coordinate of a pointyc
- the integer Y coordinate of a pointCopyright © 2005–2023 Open Microscopy Environment. All rights reserved.