source: josm/src/org/openstreetmap/josm/data/projection/LatitudeLongitude.java@ 39

Last change on this file since 39 was 16, checked in by imi, 19 years ago
  • reverted to 14, but kept the global Projection.
  • improved the preference settings for projections.
File size: 629 bytes
Line 
1package org.openstreetmap.josm.data.projection;
2
3import javax.swing.JComponent;
4
5import org.openstreetmap.josm.data.GeoPoint;
6
7/**
8 * Directly use latitude / longitude values as x/y.
9 *
10 * @author imi
11 */
12public class LatitudeLongitude extends Projection {
13
14 @Override
15 public void latlon2xy(GeoPoint p) {
16 p.x = p.lon;
17 p.y = p.lat;
18 }
19
20 @Override
21 public void xy2latlon(GeoPoint p) {
22 p.lat = p.y;
23 p.lon = p.x;
24 }
25
26 @Override
27 public String toString() {
28 return "Latitude/Longitude";
29 }
30
31 @Override
32 public JComponent getConfigurationPanel() {
33 return null;
34 }
35
36 @Override
37 public void commitConfigurationPanel() {
38 }
39}
Note: See TracBrowser for help on using the repository browser.