Package net.pl3x.map.core.markers.marker
Class Ellipse
- All Implemented Interfaces:
JsonSerializable
Represents an ellipse marker.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ellipse.Create a new ellipse.Create a new ellipse.Create a new ellipse.Create a new ellipse.Create a new ellipse.Create a new ellipse.Create a new ellipse. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Ellipse
fromJson
(com.google.gson.JsonObject obj) Get the centerPoint
of this ellipse.Get the radius for this ellipse.@Nullable Double
getTilt()
Get the tilt of this ellipse, in degrees.int
hashCode()
static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.static Ellipse
Create a new ellipse.Set a new centerPoint
for this ellipse.Set a new radius for this ellipse.Set the tilt of this ellipse, in degrees.com.google.gson.JsonObject
toJson()
Jsonify this object.toString()
Methods inherited from class net.pl3x.map.core.markers.marker.Marker
circle, circle, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, getOptions, getPane, getType, icon, icon, icon, icon, icon, icon, icon, multiPolygon, multiPolygon, multiPolygon, multiPolyline, multiPolyline, multiPolyline, polygon, polygon, polygon, polyline, polyline, polyline, rectangle, rectangle, setOptions, setOptions, setPane
-
Constructor Details
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradiusX
- x radiusradiusZ
- z radius
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradiusX
- x radiusradiusZ
- z radius
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradius
- radius
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradius
- radius
-
Ellipse
public Ellipse(String key, double centerX, double centerZ, double radiusX, double radiusZ, double tilt) Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradiusX
- x radiusradiusZ
- z radiustilt
- tilt
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradiusX
- x radiusradiusZ
- z radiustilt
- tilt
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradius
- radiustilt
- tilt
-
Ellipse
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradius
- radiustilt
- tilt
-
-
Method Details
-
of
public static Ellipse of(String key, double centerX, double centerZ, double radiusX, double radiusZ) Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradiusX
- x radiusradiusZ
- z radius- Returns:
- a new ellipse
-
of
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradiusX
- x radiusradiusZ
- z radius- Returns:
- a new ellipse
-
of
Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradius
- radius- Returns:
- a new ellipse
-
of
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradius
- radius- Returns:
- a new ellipse
-
of
public static Ellipse of(String key, double centerX, double centerZ, double radiusX, double radiusZ, double tilt) Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradiusX
- x radiusradiusZ
- z radiustilt
- tilt- Returns:
- a new ellipse
-
of
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradiusX
- x radiusradiusZ
- z radiustilt
- tilt- Returns:
- a new ellipse
-
of
Create a new ellipse.- Parameters:
key
- identifying keycenterX
- center x locationcenterZ
- center z locationradius
- radiustilt
- tilt- Returns:
- a new ellipse
-
of
Create a new ellipse.- Parameters:
key
- identifying keycenter
- center locationradius
- radiustilt
- tilt- Returns:
- a new ellipse
-
getCenter
Get the centerPoint
of this ellipse.- Returns:
- center point
-
setCenter
Set a new centerPoint
for this ellipse.- Parameters:
center
- new center- Returns:
- this ellipse
-
getRadius
Get the radius for this ellipse.- Returns:
- radius
-
setRadius
Set a new radius for this ellipse.- Parameters:
radius
- new radius- Returns:
- this ellipse
-
getTilt
Get the tilt of this ellipse, in degrees.Defaults to '
0
' if null.- Returns:
- tilt
-
setTilt
Set the tilt of this ellipse, in degrees.Defaults to '
0
' if null.- Parameters:
tilt
- new tilt- Returns:
- this ellipse
-
toJson
public com.google.gson.JsonObject toJson()Description copied from interface:JsonSerializable
Jsonify this object.- Returns:
- object as json element
-
fromJson
-
equals
-
hashCode
public int hashCode() -
toString
-