Changeset 19238 in josm
- Timestamp:
- 2024-10-09T14:17:52+02:00 (8 weeks ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r19236 r19238 241 241 /** maxTime saves the end time of the track as epoch seconds */ 242 242 private double maxTime; 243 244 243 245 244 private void setupColors() { -
trunk/src/org/openstreetmap/josm/tools/ColorScale.java
r19236 r19238 14 14 import java.time.ZonedDateTime; 15 15 import java.time.format.DateTimeFormatter; 16 import java.util.Objects; 16 17 17 18 import org.openstreetmap.josm.data.preferences.NamedColorProperty; … … 205 206 */ 206 207 public ColorScale addTitle(String title) { 208 Objects.requireNonNull(title); 207 209 this.title = title; 208 210 return this; … … 325 327 326 328 // legend title 327 if (title != null) { 328 g.setColor(LEGEND_TITLE); 329 g.drawString(title, xRect + rectWidth / 2 - titleWidth / 2, y - fh * 3 / 2 - 10); 330 } 329 g.setColor(LEGEND_TITLE); 330 g.drawString(title, xRect + rectWidth / 2 - titleWidth / 2, y - fh * 3 / 2 - 10); 331 331 332 332 // legend texts … … 385 385 386 386 // legend title 387 if (title != null) { 388 g.setColor(LEGEND_TITLE); 389 g.drawString(title, xRect + rectWidth / 2 - titleWidth / 2, y - fh * 3 / 2 - padding / 2); 390 } 387 g.setColor(LEGEND_TITLE); 388 g.drawString(title, xRect + rectWidth / 2 - titleWidth / 2, y - fh * 3 / 2 - padding / 2); 391 389 392 390 // legend texts
Note:
See TracChangeset
for help on using the changeset viewer.