Package com.badlogic.gdx.maps.objects
Class EllipseMapObject
- java.lang.Object
-
- com.badlogic.gdx.maps.MapObject
-
- com.badlogic.gdx.maps.objects.EllipseMapObject
-
public class EllipseMapObject extends MapObject
-
-
Constructor Summary
Constructors Constructor Description EllipseMapObject()
Creates anEllipse
object whose lower left corner is at (0, 0) with width=1 and height=1EllipseMapObject(float x, float y, float width, float height)
Creates anEllipse
object with the given X and Y coordinates along with a specified width and height.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ellipse
getEllipse()
-
Methods inherited from class com.badlogic.gdx.maps.MapObject
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisible
-
-
-
-
Constructor Detail
-
EllipseMapObject
public EllipseMapObject()
Creates anEllipse
object whose lower left corner is at (0, 0) with width=1 and height=1
-
EllipseMapObject
public EllipseMapObject(float x, float y, float width, float height)
Creates anEllipse
object with the given X and Y coordinates along with a specified width and height.- Parameters:
x
- X coordinatey
- Y coordinatewidth
- Width in pixelsheight
- Height in pixels
-
-
Method Detail
-
getEllipse
public Ellipse getEllipse()
- Returns:
- ellipse shape
-
-