oracle.panama.model
Interface Point

All Known Subinterfaces:
ExtendedLocation, IntlAddress, Location, LocationMark, YPBusiness
All Known Implementing Classes:
PointImpl

public interface Point


Method Summary
TypeMethod
 double getDistance(Point pt)
          Returns the distance from this Point to a specified Point.
 java.lang.String getLabel()
           
 double getLatitude()
          This returns the latitude of this Point.
 double getLongitude()
          This returns the longitude of this Point.
 double getRadius()
          This returns the optional radius around this Point.
 void setLabel(java.lang.String name)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setRadius(double radius)
           
 

Method Detail

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String name)

getLatitude

public double getLatitude()
This returns the latitude of this Point.
Returns:
the latitude of this Point

setLatitude

public void setLatitude(double latitude)

getLongitude

public double getLongitude()
This returns the longitude of this Point.
Returns:
the longitude of this Point

setLongitude

public void setLongitude(double longitude)

getRadius

public double getRadius()
This returns the optional radius around this Point.
Returns:
a double representing the radius around this Point (0 by default)

setRadius

public void setRadius(double radius)

getDistance

public double getDistance(Point pt)
Returns the distance from this Point to a specified Point.
Parameters:
pt - the specified Point
Returns:
the distance between this Point and the specified Point in meters.