public final class Rect extends Object
| Constructor and Description |
|---|
Rect(int left,
int top,
int right,
int bottom) |
Rect(Point position,
Dimension size) |
Rect(Point pointa,
Point pointb) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBottom() |
Dimension |
getDimension() |
int |
getHeight() |
int |
getLeft() |
Point |
getPosition() |
int |
getRight() |
int |
getTop() |
int |
getWidth() |
Rect |
move(int shiftX,
int shiftY)
Move the entire rectangle.
|
Rect |
normalize()
If needed, return a new rect where size has no negative amounts
|
boolean |
overlaps(Rect rect)
Return T if this rect has any kind of intersection with the other rectangle.
|
String |
toString() |
public final int getLeft()
public final int getTop()
public final int getRight()
public final int getBottom()
@Nonnull public Rect normalize()
public int getWidth()
public int getHeight()
@Nonnull public Rect move(int shiftX, int shiftY)
shiftX - shiftY - Copyright © 2017 etc.to. All rights reserved.