|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.util.IntRect
public class IntRect
A class for representing a rectangular region, in integer coordinates.
It exists mainly to avoid AWT references to Rectangle.
| Field Summary | |
|---|---|
int |
height
|
int |
width
|
int |
x
|
int |
y
|
| Constructor Summary | |
|---|---|
IntRect()
|
|
IntRect(int x,
int y,
int width,
int height)
|
|
| Method Summary | |
|---|---|
boolean |
contains(IntCoords coords)
Tests whether the given coordinates lie within the rectangle. |
boolean |
equals(Object o)
|
IntCoords |
getBottomRight()
Gets the bottom right coordinate of the rectangle. |
IntCoords |
getTopLeft()
Gets the top left coordinate of the rectangle. |
int |
hashCode()
|
IntRect |
intersection(IntRect r)
Returns a Rect representing the intersection of this Rect with the given Rect. |
boolean |
intersects(IntRect r)
Returns true if this rect intersects the given rect. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
public int width
public int height
| Constructor Detail |
|---|
public IntRect()
public IntRect(int x,
int y,
int width,
int height)
| Method Detail |
|---|
public boolean intersects(IntRect r)
public IntRect intersection(IntRect r)
public boolean contains(IntCoords coords)
public IntCoords getTopLeft()
public IntCoords getBottomRight()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||