public class BoundingBox
extends java.lang.Object
Constructor and Description |
---|
BoundingBox(int leftTopX,
int leftTopY,
int bottomRightX,
int bottomRightY)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBottomRightX()
Get X position of right bottom corner.
|
int |
getBottomRightY()
Get Y position of right bottom corner.
|
int |
getLeftTopX()
Get X position of left top corner.
|
int |
getLeftTopY()
Get Y position of left top corner.
|
java.lang.String |
toString()
Returns string representation of object.
|
public BoundingBox(int leftTopX, int leftTopY, int bottomRightX, int bottomRightY)
leftTopX
- X position of left top corner.leftTopY
- Y position of left top corner.bottomRightX
- X position of right bottom corner.bottomRightY
- Y position of right bottom corner.public int getLeftTopX()
public int getLeftTopY()
public int getBottomRightX()
public int getBottomRightY()
public java.lang.String toString()
toString
in class java.lang.Object