Changeset 7182 in josm for trunk/src


Ignore:
Timestamp:
2014-05-26T09:22:25+02:00 (6 years ago)
Author:
akks
Message:

see #10072: color large GPS points like the track segments
use draw.rawgps.large.alpha parameter for transparency
updated Netbeans project (JAXB)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r7026 r7182  
    463463        boolean colorModeDynamic = Main.pref.getBoolean("draw.rawgps.colors.dynamic", spec, false);
    464464        int hdopfactor = Main.pref.getInteger("hdop.factor", 25);
     465
     466        int largePointAlpha = Main.pref.getInteger("draw.rawgps.large.alpha", -1) & 0xFF;
    465467
    466468        Stroke storedStroke = g.getStroke();
     
    746748                }
    747749                Point screen = mv.getPoint(trkPnt.getEastNorth());
     750                if (!hdopcircle) {
     751                    // color the large GPS points like the gps lines
     752                    trkPnt.customColoringTransparent = new Color(
     753                        trkPnt.customColoring.getRed(), trkPnt.customColoring.getGreen(), trkPnt.customColoring.getBlue(), largePointAlpha);
     754                }
    748755                g.setColor(trkPnt.customColoringTransparent);
    749756                if (hdopcircle && trkPnt.attr.get("hdop") != null) {
Note: See TracChangeset for help on using the changeset viewer.