|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.spatial.PointImpl
This class defines a point with its coordinates lat/lon and an optional label, such as a company name. This class is thread-safe due to synchronization of the relevant member functions.
Constructor Summary |
PointImpl()
Constructor |
PointImpl(double longitude,
double latitude)
Constructor |
PointImpl(double longitude,
double latitude,
double radiusInMeters)
Constructor |
PointImpl(double longitude,
double latitude,
java.lang.String label)
Constructor |
PointImpl(double longitude,
double latitude,
java.lang.String label,
double radiusInMeters)
Constructor |
Method Summary |
Type | Method |
---|---|
double |
getDistance(Point otherPoint)
This function determines the distance between two points on the earth along the shortest arc on the earth surface. |
java.lang.String |
getLabel()
This returns the label of this PointImpl. |
double |
getLatitude()
This returns the latitude of this PointImpl. |
double |
getLongitude()
This returns the longitude of this PointImpl. |
double |
getRadius()
This returns the optional radius around this PointImpl. |
void |
set(double longitude,
double latitude,
java.lang.String label,
double radiusInMeters)
Setter for point data |
void |
set(Point otherPoint)
Setter for point data |
void |
setLabel(java.lang.String name)
|
void |
setLatitude(double latitude)
|
void |
setLongitude(double longitude)
|
void |
setRadius(double radius)
|
java.lang.String |
toString()
This returns a String representing this PointImpl |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PointImpl(double longitude, double latitude)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)public PointImpl(double longitude, double latitude, java.lang.String label)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)label
- a String representing
a label for this PointImpl (may be null)public PointImpl(double longitude, double latitude, java.lang.String label, double radiusInMeters)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)label
- a String representing
a label for this PointImpl (may be null)radiusInMeters
- a double representing an optional radius around this pointpublic PointImpl()
public PointImpl(double longitude, double latitude, double radiusInMeters)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)radiusInMeters
- a
double representing an optional radius around this pointMethod Detail |
public void set(double longitude, double latitude, java.lang.String label, double radiusInMeters)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)label
- a String representing
a label for this PointImpl (may be null)radiusInMeters
- a double representing an optional radius around this pointpublic void set(Point otherPoint)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)label
- a String representing
a label for this PointImpl (may be null)radiusInMeters
- a double representing an optional radius around this pointpublic java.lang.String getLabel()
getLabel
in interface Point
public double getRadius()
getRadius
in interface Point
public double getLatitude()
getLatitude
in interface Point
public double getLongitude()
getLongitude
in interface Point
public double getDistance(Point otherPoint)
getDistance
in interface Point
otherPoint
- a PointImpl representing the other PointImpl to which to
determine the distancepublic java.lang.String toString()
toString
in class java.lang.Object
public void setLabel(java.lang.String name)
setLabel
in interface Point
public void setLatitude(double latitude)
setLatitude
in interface Point
public void setLongitude(double longitude)
setLongitude
in interface Point
public void setRadius(double radius)
setRadius
in interface Point
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |