public class Rect
extends java.lang.Object
Constructor and Description |
---|
Rect() |
Rect(int left,
int top,
int right,
int bottom) |
Rect(Rect rect) |
Modifier and Type | Method and Description |
---|---|
int |
height() |
boolean |
inside(Point p) |
Rect |
intersect(Rect other) |
boolean |
isEmpty() |
Rect |
set(int left,
int top,
int right,
int bottom) |
Rect |
set(Rect rect) |
Rect |
setEmpty() |
Rect |
shrink() |
Rect |
shrink(int d) |
int |
square() |
Rect |
union(int x,
int y) |
Rect |
union(Point p) |
int |
width() |
public int left
public int top
public int right
public int bottom
public Rect()
public Rect(Rect rect)
public Rect(int left, int top, int right, int bottom)
public int width()
public int height()
public int square()
public Rect set(int left, int top, int right, int bottom)
public boolean isEmpty()
public Rect setEmpty()
public Rect union(int x, int y)
public boolean inside(Point p)
public Rect shrink(int d)
public Rect shrink()