public class RectangleMapObject extends MapObject
| Constructor and Description |
|---|
RectangleMapObject()
Creates a rectangle object which lower left corner is at (0, 0) with width=1 and height=1
|
RectangleMapObject(float x,
float y,
float width,
float height)
Creates a
Rectangle object with the given X and Y coordinates along with a given width and height. |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getRectangle() |
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisiblepublic RectangleMapObject()
public RectangleMapObject(float x,
float y,
float width,
float height)
Rectangle object with the given X and Y coordinates along with a given width and height.public Rectangle getRectangle()