Changeset 31435 in osm for applications/viewer/jmapviewer/src
- Timestamp:
- 2015-08-02T17:20:58+02:00 (9 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Demo.java
r31434 r31435 39 39 private static final long serialVersionUID = 1L; 40 40 41 private JMapViewerTree treeMap = null;42 43 private JLabel zoomLabel = null;44 private JLabel zoomValue = null;45 46 private JLabel mperpLabelName = null;47 private JLabel mperpLabelValue = null;41 private final JMapViewerTree treeMap; 42 43 private final JLabel zoomLabel; 44 private final JLabel zoomValue; 45 46 private final JLabel mperpLabelName; 47 private final JLabel mperpLabelValue; 48 48 49 49 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JobDispatcher.java
r31434 r31435 23 23 private static int workerThreadMaxCount = 8; 24 24 25 private BlockingDeque<TileJob> jobQueue = new LinkedBlockingDeque<>();25 private final BlockingDeque<TileJob> jobQueue = new LinkedBlockingDeque<>(); 26 26 27 27 private JobDispatcher() { … … 113 113 } 114 114 115 pr otectedJobThread addWorkerThread() {115 private JobThread addWorkerThread() { 116 116 JobThread jobThread = new JobThread(++workerThreadId); 117 117 synchronized (this) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/LayerGroup.java
r31429 r31435 53 53 public void calculateVisibleTexts() { 54 54 Boolean calculate = null; 55 if (layers != null && layers.size() > 0) {55 if (layers != null && !layers.isEmpty()) { 56 56 calculate = layers.get(0).isVisibleTexts(); 57 57 for (int i = 1; i < layers.size(); i++) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileXY.java
r31429 r31435 10 10 * x index of the tile (horizontal) 11 11 */ 12 private double x; 12 private final double x; 13 13 14 /** 14 15 * y number of the tile (vertical) 15 16 */ 16 private double y;17 private final double y; 17 18 18 19 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
r31434 r31435 26 26 protected String baseUrl; 27 27 protected String id; 28 private Map<String, String> noTileHeaders;29 private Map<String, String> metadataHeaders;28 private final Map<String, String> noTileHeaders; 29 private final Map<String, String> metadataHeaders; 30 30 protected int tileSize; 31 31 protected OsmMercator osmMercator; … … 46 46 this.metadataHeaders = info.getMetadataHeaders(); 47 47 this.tileSize = info.getTileSize(); 48 osmMercator = new OsmMercator(this.tileSize);48 this.osmMercator = new OsmMercator(this.tileSize); 49 49 } 50 50 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r31434 r31435 43 43 } 44 44 45 /* IRS by default */45 /** IRS by default */ 46 46 private ScanexLayer layer = ScanexLayer.IRS; 47 47 … … 50 50 String url = info.getUrl(); 51 51 52 for (ScanexLayer layer : ScanexLayer.values()) { 53 if (url.equalsIgnoreCase(layer.getName())) { 54 this.layer = layer; 55 /* 56 * Override baseUrl and maxZoom in base class. 57 */ 52 for (ScanexLayer slayer : ScanexLayer.values()) { 53 if (url.equalsIgnoreCase(slayer.getName())) { 54 this.layer = slayer; 55 // Override baseUrl and maxZoom in base class. 58 56 this.baseUrl = DEFAULT_URL; 59 57 if (maxZoom == 0) -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r31433 r31435 34 34 private Random rand = null; 35 35 private String[] randomParts = null; 36 private Map<String, String> headers = new HashMap<>();36 private final Map<String, String> headers = new HashMap<>(); 37 37 38 38 private static final String COOKIE_HEADER = "Cookie";
Note:
See TracChangeset
for help on using the changeset viewer.