Changeset 34507 in osm for applications/editors/josm/plugins/ElevationProfile
- Timestamp:
- 2018-08-18T17:09:37+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/.classpath
r32680 r34507 2 2 <classpath> 3 3 <classpathentry kind="src" path="src"/> 4 <classpathentry kind="src" path="test/unit"/> 4 <classpathentry kind="src" output="buildtest" path="test/unit"> 5 <attributes> 6 <attribute name="test" value="true"/> 7 </attributes> 8 </classpathentry> 5 9 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> 6 10 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> -
applications/editors/josm/plugins/ElevationProfile/build.xml
r33551 r34507 4 4 <property name="commit.message" value="[josm_elevationprofile]"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 2669"/>6 <property name="plugin.main.version" value="14153"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/HgtReader.java
r32775 r34507 11 11 import java.util.HashMap; 12 12 13 import org.openstreetmap.josm. Main;13 import org.openstreetmap.josm.data.Preferences; 14 14 import org.openstreetmap.josm.data.coor.LatLon; 15 15 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 44 44 cache.put(file, null); 45 45 // Try all resource directories 46 for (String location : Main.pref.getAllPossiblePreferenceDirs()) {46 for (String location : Preferences.getAllPossiblePreferenceDirs()) { 47 47 String fullPath = new File(location + File.separator + "elevation", file).getPath(); 48 48 File f = new File(fullPath); -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/DefaultElevationProfileRenderer.java
r33815 r34507 19 19 import java.util.List; 20 20 21 import org.openstreetmap.josm.Main;22 21 import org.openstreetmap.josm.data.gpx.WayPoint; 22 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 23 23 import org.openstreetmap.josm.gui.MapView; 24 24 import org.openstreetmap.josm.plugins.elevation.ElevationHelper; … … 151 151 152 152 // transform to view 153 Point pnt1 = mv.getPoint(wpt1.getEastNorth( Main.getProjection()));154 Point pnt2 = mv.getPoint(wpt2.getEastNorth( Main.getProjection()));153 Point pnt1 = mv.getPoint(wpt1.getEastNorth(ProjectionRegistry.getProjection())); 154 Point pnt2 = mv.getPoint(wpt2.getEastNorth(ProjectionRegistry.getProjection())); 155 155 156 156 // use thick line, if possible … … 189 189 190 190 Color c = getColorForWaypoint(profile, wpt, kind); 191 Point pnt = mv.getPoint(wpt.getEastNorth( Main.getProjection()));191 Point pnt = mv.getPoint(wpt.getEastNorth(ProjectionRegistry.getProjection())); 192 192 193 193 /* Paint full hour label */ … … 236 236 Color c = getColorForWaypoint(profile, wpt, kind); 237 237 int eleH = (int) ElevationHelper.getElevation(wpt); 238 Point pnt = mv.getPoint(wpt.getEastNorth( Main.getProjection()));238 Point pnt = mv.getPoint(wpt.getEastNorth(ProjectionRegistry.getProjection())); 239 239 240 240 TriangleDir td = TriangleDir.Up; … … 360 360 361 361 Color c = getColorForWaypoint(profile, wpt, kind); 362 Point pnt = mv.getPoint(wpt.getEastNorth( Main.getProjection()));362 Point pnt = mv.getPoint(wpt.getEastNorth(ProjectionRegistry.getProjection())); 363 363 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, BIG_WPT_RADIUS); 364 364 }
Note:
See TracChangeset
for help on using the changeset viewer.