public final class Rect extends Object
Constructor and Description |
---|
Rect(int x,
int y,
int w,
int h) |
Rect(Rect copy) |
Modifier and Type | Method and Description |
---|---|
int |
getCenterX() |
int |
getCenterY() |
boolean |
isInsideX(int n) |
boolean |
isInsideY(int n) |
void |
moveInside(Rect bounds)
Note, this actually changes this Rect (if that wasn't obvious)
|
String |
toString() |
public Rect(int x, int y, int w, int h)
public Rect(Rect copy)
public boolean isInsideX(int n)
public boolean isInsideY(int n)
public int getCenterX()
public int getCenterY()
public final void moveInside(Rect bounds)
Copyright © 2015. All Rights Reserved.