Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Interface Point

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ExtendedLocation, ExtendedYPBusiness, IntlAddress, Location, LocationMark, YPBusiness

public interface Point
extends java.io.Serializable

Method Summary
 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.
 ProviderCredit getPositionProvider()
           
 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 setPositionProvider(ProviderCredit credit)
           
 void setRadius(double radius)
           

 

Method Detail

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.

getLabel

public java.lang.String getLabel()

getLatitude

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

getLongitude

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

getPositionProvider

public ProviderCredit getPositionProvider()

getRadius

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

setLabel

public void setLabel(java.lang.String name)

setLatitude

public void setLatitude(double latitude)

setLongitude

public void setLongitude(double longitude)

setPositionProvider

public void setPositionProvider(ProviderCredit credit)

setRadius

public void setRadius(double radius)

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.