Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dinopolis.gpstool
Interface MapNavigationHook  view MapNavigationHook download MapNavigationHook.java

All Known Implementing Classes:
GPSMap

public interface MapNavigationHook

This hook is used for hooks concerning navigation in the map.

Version:
$Revision: 1.3 $

Method Summary
 Projection getMapProjection()
          Returns the currently used projection of the map.
 void reScale(float scale_factor)
          Rescales the map by a given factor.
 void setMapCenter(double latitude, double longitude)
          Sets the new center of the map.
 void setScale(float scale)
          Rescales the map by to a given scale.
 void translateMapCenterRelative(float factor_x, float factor_y)
          Sets a new center for the map.
 

Method Detail

setMapCenter

public void setMapCenter(double latitude,
                         double longitude)
Sets the new center of the map.


reScale

public void reScale(float scale_factor)
Rescales the map by a given factor. A factor of 1.0 leaves the map unchanged. A factor greater 1.0 zooms in, a factor less than 1.0 zooms out.


setScale

public void setScale(float scale)
Rescales the map by to a given scale.


translateMapCenterRelative

public void translateMapCenterRelative(float factor_x,
                                       float factor_y)
Sets a new center for the map. A negative factor moves the center up or left, a postive factor down or right. A factor of 1.0 translates the center a complete height/width down or right.


getMapProjection

public Projection getMapProjection()
Returns the currently used projection of the map. This projection may be used to calculate the latititude/longitude from screen coordinates and vice versa.