Changeset 11436 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2017-01-07T01:15:43+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r11431 r11436 144 144 145 145 // copied value for line drawing 146 private List<Integer> heatMapPolyX = new ArrayList<>();147 private List<Integer> heatMapPolyY = new ArrayList<>();146 private final List<Integer> heatMapPolyX = new ArrayList<>(); 147 private final List<Integer> heatMapPolyY = new ArrayList<>(); 148 148 149 149 // setup color maps used by heat map … … 369 369 "(" + 370 370 "segments= " + visibleSegments.size() + 371 ", per 10000 = " + Utils.getDurationString(10 000 * timeDiff / visibleSegments.size()) +371 ", per 10000 = " + Utils.getDurationString(10_000 * timeDiff / visibleSegments.size()) + 372 372 ")" 373 373 ); … … 449 449 dateScale.setRange(minval, maxval); 450 450 } 451 452 451 453 452 // Now the colors for all the points will be assigned … … 719 718 } 720 719 721 /**720 /** 722 721 * Draw GPX lines by using alpha blending 723 722 * @param g the common draw object to use … … 853 852 // transform into lookup table 854 853 return colorTable; 855 }856 857 /**858 * Creates a colormap by using a static color map with 1..n colors (RGB 0.0 ..1.0)859 * @param data array of multiple RGB color [n][3]860 * @return a dynamic list of color objects861 */862 protected static Color[] createColorFromRawArray(double[][] data) {863 864 // create the array865 Color[] color = new Color[ data.length ];866 867 for (int k = 0; k < data.length; k++) {868 // cast an map to linear array869 color[k] = new Color((float) data[k][0], (float) data[k][1], (float) data[k][2]);870 }871 872 // forward873 return createColorLut(color);874 854 } 875 855
Note:
See TracChangeset
for help on using the changeset viewer.