Changeset 6889 in josm for trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
- Timestamp:
- 2014-02-27T01:41:49+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r6830 r6889 255 255 256 256 /* for preferences */ 257 static public Color getGenericColor() {257 public static Color getGenericColor() { 258 258 return Main.pref.getColor(marktr("gps point"), Color.gray); 259 259 } … … 363 363 } 364 364 365 private final staticColor[] colors = new Color[256];365 private static final Color[] colors = new Color[256]; 366 366 static { 367 367 for (int i = 0; i < colors.length; i++) { … … 370 370 } 371 371 372 private final staticColor[] colors_cyclic = new Color[256];372 private static final Color[] colors_cyclic = new Color[256]; 373 373 static { 374 374 for (int i = 0; i < colors_cyclic.length; i++) { … … 405 405 406 406 // lookup array to draw arrows without doing any math 407 private final staticint ll0 = 9;408 private final staticint sl4 = 5;409 private final staticint sl9 = 3;410 private final staticint[][] dir = { { +sl4, +ll0, +ll0, +sl4 }, { -sl9, +ll0, +sl9, +ll0 }, { -ll0, +sl4, -sl4, +ll0 },407 private static final int ll0 = 9; 408 private static final int sl4 = 5; 409 private static final int sl9 = 3; 410 private static final int[][] dir = { { +sl4, +ll0, +ll0, +sl4 }, { -sl9, +ll0, +sl9, +ll0 }, { -ll0, +sl4, -sl4, +ll0 }, 411 411 { -ll0, -sl9, -ll0, +sl9 }, { -sl4, -ll0, -ll0, -sl4 }, { +sl9, -ll0, -sl9, -ll0 }, 412 412 { +ll0, -sl4, +sl4, -ll0 }, { +ll0, +sl9, +ll0, -sl9 }, { +sl4, +ll0, +ll0, +sl4 }, … … 814 814 * additional entries are initialized to true; 815 815 */ 816 final privatevoid ensureTrackVisibilityLength() {816 private final void ensureTrackVisibilityLength() { 817 817 final int l = data.tracks.size(); 818 818 if (l == trackVisibility.length)
Note:
See TracChangeset
for help on using the changeset viewer.