net.wimpi.pim.contact.basicimpl
Class GeographicalInformationImpl

java.lang.Object
  |
  +--net.wimpi.pim.contact.basicimpl.GeographicalInformationImpl
All Implemented Interfaces:
GeographicalInformation, java.io.Serializable

public class GeographicalInformationImpl
extends java.lang.Object
implements GeographicalInformation

A basic and simple implementation of the GeographicalInformation.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger
See Also:
Serialized Form

Field Summary
protected  double m_Latitude
           
protected  double m_Longitude
           
protected  java.util.TimeZone m_TZ
           
 
Constructor Summary
GeographicalInformationImpl()
           
 
Method Summary
 double getLatitude()
          Returns the latitude of the geographical position.
 double getLongitude()
          Returns the longitude of the geographical position.
 java.util.TimeZone getTimeZone()
          Returns the time zone information.
 void setLatitude(double latitude)
          Sets the latitude of the geographical position.
 void setLongitude(double longitude)
          Sets the longitude of the geographical position.
 void setTimeZone(java.util.TimeZone timezone)
          Sets the time zone informations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_TZ

protected java.util.TimeZone m_TZ

m_Longitude

protected double m_Longitude

m_Latitude

protected double m_Latitude
Constructor Detail

GeographicalInformationImpl

public GeographicalInformationImpl()
Method Detail

getTimeZone

public java.util.TimeZone getTimeZone()
Description copied from interface: GeographicalInformation
Returns the time zone information.

Specified by:
getTimeZone in interface GeographicalInformation
Returns:
the time zone as TimeZone.

setTimeZone

public void setTimeZone(java.util.TimeZone timezone)
Description copied from interface: GeographicalInformation
Sets the time zone informations.

Specified by:
setTimeZone in interface GeographicalInformation
Parameters:
timezone - the time zone information as TimeZone.

getLongitude

public double getLongitude()
Description copied from interface: GeographicalInformation
Returns the longitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Specified by:
getLongitude in interface GeographicalInformation
Returns:
the longitude as double.

setLongitude

public void setLongitude(double longitude)
Description copied from interface: GeographicalInformation
Sets the longitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Specified by:
setLongitude in interface GeographicalInformation
Parameters:
longitude - the longitude as double.

getLatitude

public double getLatitude()
Description copied from interface: GeographicalInformation
Returns the latitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Specified by:
getLatitude in interface GeographicalInformation
Returns:
the latitude as double.

setLatitude

public void setLatitude(double latitude)
Description copied from interface: GeographicalInformation
Sets the latitude of the geographical position.
The value should reflect the decimal value calculated from following formula: decimal = degrees + minutes/60 + seconds/3600

Specified by:
setLatitude in interface GeographicalInformation
Parameters:
latitude - the latitude as double.


Copyright © 2001-2003 jpim team.