public class Point
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Point.Property |
Constructor and Description |
---|
Point()
Creates new Point object.
|
Point(double x,
double y) |
Point(Map map)
Creates new Point object.
|
Point(Map map,
double x,
double y)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Point |
clone() |
protected com.teamdev.jxmaps.internal.JSValue |
createJSValue(Map map) |
boolean |
equals(Point other)
Compares two Points.
|
protected static Point |
fromJSValue(com.teamdev.jxmaps.internal.JSValue value) |
double |
getX()
Returns value of x property.
|
double |
getY()
Returns value of yx property
|
void |
setX(double x)
Sets new value for x property
|
void |
setY(double y)
Sets new value for y property
|
java.lang.String |
toString()
Returns a string representation of this Point.
|
public Point()
public Point(Map map)
map
- owner Map object@Deprecated public Point(Map map, double x, double y)
map
- owner Map objectx
- initial X valuey
- initial Y valuepublic Point(double x, double y)
x
- initial X valuey
- initial Y valuepublic boolean equals(Point other)
other
- point to compare withpublic java.lang.String toString()
toString
in class java.lang.Object
public double getX()
Contains the X coordinate
setX(double)
public double getY()
Contains the Y coordinate
setY(double)
public void setX(double x)
x
- new property valuegetX()
public void setY(double y)
y
- new property valuegetY()
protected static Point fromJSValue(com.teamdev.jxmaps.internal.JSValue value)
protected Point clone()
clone
in class java.lang.Object
protected com.teamdev.jxmaps.internal.JSValue createJSValue(Map map)