- Timestamp:
- 2009-08-11T18:11:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r1910 r1956 7 7 import static org.openstreetmap.josm.tools.I18n.trn; 8 8 9 import java.awt.BasicStroke; 9 10 import java.awt.Color; 10 11 import java.awt.Component; 11 12 import java.awt.Graphics; 13 import java.awt.Graphics2D; 12 14 import java.awt.GridBagLayout; 13 15 import java.awt.Point; … … 420 422 boolean direction = Main.pref.getBoolean("draw.rawgps.direction"); 421 423 // don't draw lines if longer than x meters 424 int lineWidth = Main.pref.getInteger("draw.rawgps.linewidth",0); 425 422 426 int maxLineLength; 423 427 if (this.isLocalFile) { … … 448 452 // allows to tweak line coloring for different speed levels. 449 453 int colorTracksTune = Main.pref.getInteger("draw.rawgps.colorTracksTune", 45); 454 455 if(lineWidth != 0) 456 { 457 Graphics2D g2d = (Graphics2D)g; 458 g2d.setStroke(new BasicStroke(lineWidth,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND)); 459 } 460 450 461 /**************************************************************** 451 462 ********** STEP 2a - CHECK CACHE VALIDITY **********************
Note:
See TracChangeset
for help on using the changeset viewer.