Changeset 4869 in josm for trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
- Timestamp:
- 2012-01-24T21:52:43+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r4627 r4869 64 64 public static final String PROPNAME_CENTER = "center"; 65 65 public static final String PROPNAME_SCALE = "scale"; 66 66 67 67 /** 68 68 * the zoom listeners … … 237 237 1.0/scale, 0.0, 0.0, -1.0/scale, getWidth()/2.0 - center.east()/scale, getHeight()/2.0 + center.north()/scale); 238 238 } 239 239 240 240 /** 241 241 * Return the point on the screen where this Coordinate would be. … … 394 394 } 395 395 } 396 ).start();396 ).start(); 397 397 } 398 398 } … … 1161 1161 public int getViewID() { 1162 1162 String x = center.east() + "_" + center.north() + "_" + scale + "_" + 1163 getWidth() + "_" + getHeight() + "_" + getProjection().toString();1163 getWidth() + "_" + getHeight() + "_" + getProjection().toString(); 1164 1164 java.util.zip.CRC32 id = new java.util.zip.CRC32(); 1165 1165 id.update(x.getBytes()); … … 1209 1209 public static final SystemOfMeasurement IMPERIAL_SOM = new SystemOfMeasurement(0.3048, "ft", 1609.344, "mi"); 1210 1210 1211 public static Map<String, SystemOfMeasurement> SYSTEMS_OF_MEASUREMENT;1211 public static final Map<String, SystemOfMeasurement> SYSTEMS_OF_MEASUREMENT; 1212 1212 static { 1213 1213 SYSTEMS_OF_MEASUREMENT = new LinkedHashMap<String, SystemOfMeasurement>();
Note:
See TracChangeset
for help on using the changeset viewer.