Changeset 10306 in josm for trunk/src/org/openstreetmap/josm/gui/layer
- Timestamp:
- 2016-05-31T00:14:15+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/NativeScaleLayer.java
r10300 r10306 27 27 * Scale factor, same unit as in {@link NavigatableComponent} 28 28 */ 29 private double scale;29 private final double scale; 30 30 31 31 /** 32 32 * True if this scale is native resolution for data source. 33 33 */ 34 private boolean isNative;35 36 private int index;34 private final boolean isNative; 35 36 private final int index; 37 37 38 38 /** … … 78 78 79 79 /** 80 * List of scales, may include intermediate steps 81 * between native resolutions 80 * List of scales, may include intermediate steps between native resolutions 82 81 */ 83 82 class ScaleList { 84 private List<Scale> scales = new ArrayList<>(); 85 86 protected ScaleList(double[] scales) { 87 for (int i = 0; i < scales.length; i++) { 88 this.scales.add(new Scale(scales[i], i)); 89 } 90 } 83 private final List<Scale> scales = new ArrayList<>(); 91 84 92 85 protected ScaleList() {
Note:
See TracChangeset
for help on using the changeset viewer.