|
|||||||||
| 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 point| Method 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 Pointpublic double getRadius()
getRadius in interface Pointpublic double getLatitude()
getLatitude in interface Pointpublic double getLongitude()
getLongitude in interface Pointpublic double getDistance(Point otherPoint)
getDistance in interface PointotherPoint - a PointImpl representing the other PointImpl to which to
determine the distancepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setLabel(java.lang.String name)
setLabel in interface Pointpublic void setLatitude(double latitude)
setLatitude in interface Pointpublic void setLongitude(double longitude)
setLongitude in interface Pointpublic void setRadius(double radius)
setRadius in interface Point
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||