public class SimpleRectangle
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SimpleRectangle() |
SimpleRectangle(float left,
float right,
float top,
float bottom)
Creates a SimpleRectangle object using the provided left, right, top and bottom coordinates.
|
Modifier and Type | Method and Description |
---|---|
float |
getBottom()
Gets the bottom coordinate of this rectangle.
|
float |
getLeft()
Gets the left coordinate of this rectangle.
|
float |
getRight()
Gets the right coordinate of this rectangle.
|
float |
getTop()
Gets the top coordinate of this rectangle.
|
void |
setBottom(float bottom)
Sets the bottom coordinate of this rectangle.
|
void |
setLeft(float left)
Sets the left coordinate of this rectangle.
|
void |
setRight(float right)
Sets the right coordinate of this rectangle.
|
void |
setTop(float top)
Sets the top coordinate of this rectangle.
|
public SimpleRectangle()
public SimpleRectangle(float left, float right, float top, float bottom)
left
- the left coordinate of the rectangle.right
- the right coordinate of the rectangle.top
- the top coordinate of the rectangle.bottom
- the bottom coordinate of the rectangle.public float getLeft()
public void setLeft(float left)
left
- the left coordinate of this rectangle.public float getRight()
public void setRight(float right)
right
- the right coordinate of this rectangle.public float getTop()
public void setTop(float top)
top
- the top coordinate of this rectangle.public float getBottom()
public void setBottom(float bottom)
bottom
- the bottom coordinate of this rectangle.