Changeset 33215 in osm for applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap
- Timestamp:
- 2017-04-06T23:02:57+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ColorMap.java
r32775 r33215 155 155 map.name = name; 156 156 for (int i = 0; i < ele.length; i++) { 157 map.colorList.add( map.new ColorMapEntry(colors[i], ele[i]));157 map.colorList.add(new ColorMapEntry(colors[i], ele[i])); 158 158 } 159 159 … … 165 165 } 166 166 167 class ColorMapEntry implements Comparable<ColorMapEntry> {167 static class ColorMapEntry implements Comparable<ColorMapEntry> { 168 168 private final int ele; // limit 169 169 private final Color color; -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationMapMode.java
r32775 r33215 7 7 8 8 import org.openstreetmap.josm.actions.mapmode.MapMode; 9 import org.openstreetmap.josm.gui.MapFrame;10 9 11 10 /** … … 19 18 private static final long serialVersionUID = -1011179566962655639L; 20 19 21 public ElevationMapMode(String name , MapFrame mapFrame) {20 public ElevationMapMode(String name) { 22 21 super(name, 23 22 "elevation.png", 24 23 tr("Shows elevation profile"), 25 mapFrame,26 24 Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); 27 25 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
r32775 r33215 48 48 49 49 if (newFrame != null) { 50 ElevationMapMode eleMode = new ElevationMapMode("Elevation profile" , newFrame);50 ElevationMapMode eleMode = new ElevationMapMode("Elevation profile"); 51 51 newFrame.addMapMode(new IconToggleButton(eleMode)); 52 52 ElevationProfileDialog eleProfileDlg = new ElevationProfileDialog(); -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java
r32775 r33215 163 163 */ 164 164 public double getEle() { 165 166 165 return avrgEle; 167 166 } … … 170 169 public String toString() { 171 170 return "EleVertex [avrgEle=" + avrgEle + ", area=" + area + ", points=" 172 + Arrays.toString(points) + "]";173 } 174 175 class TriangleEdge implements Comparable<TriangleEdge> {171 + Arrays.toString(points) + ']'; 172 } 173 174 static class TriangleEdge implements Comparable<TriangleEdge> { 176 175 private final int i; 177 176 private final int j;
Note:
See TracChangeset
for help on using the changeset viewer.