Changeset 23753 in osm
- Timestamp:
- 2010-10-22T20:57:08+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/DefaultElevationProfileRenderer.java
r23721 r23753 48 48 * 49 49 */ 50 private static final int REGULAR_WPT_RADIUS = 2; 50 private static final int BASIC_WPT_RADIUS = 2; 51 private static final int REGULAR_WPT_RADIUS = BASIC_WPT_RADIUS * 4; 52 private static final int BIG_WPT_RADIUS = BASIC_WPT_RADIUS * 10; 53 51 54 // predefined colors 52 55 private static final Color HIGH_COLOR = ElevationColors.EPMidBlue; … … 172 175 173 176 int rad = REGULAR_WPT_RADIUS; 174 int r2 = rad * 4;175 177 g.setColor(c); 176 178 //g.drawOval(pnt.x - rad, pnt.y - rad, r2, r2); 177 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, r 2);179 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, rad); 178 180 179 181 if (kind == ElevationWayPointKind.FullHour) { … … 186 188 int hour = WayPointHelper.getHourOfWayPoint(wpt); 187 189 int min = WayPointHelper.getMinuteOfWayPoint(wpt); 188 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, r2 * 2);190 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, BIG_WPT_RADIUS); 189 191 drawLabel(String.format("%02d:%02d", hour, min), pnt.x, pnt.y - g.getFontMetrics().getHeight(), g); 190 192 drawLabel(String.format("%dm", eleH), pnt.x, pnt.y + g.getFontMetrics().getHeight(), g); … … 335 337 Color c = getColorForWaypoint(profile, wpt, kind); 336 338 Point pnt = mv.getPoint(wpt.getEastNorth()); 337 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, REGULAR_WPT_RADIUS * 5);339 drawSphere(g, Color.WHITE, c, pnt.x, pnt.y, BIG_WPT_RADIUS); 338 340 } 339 341
Note:
See TracChangeset
for help on using the changeset viewer.