Changeset 31790 in osm
- Timestamp:
- 2015-12-03T00:44:18+01:00 (9 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java
r31429 r31790 28 28 public static final Font ATTR_LINK_FONT; 29 29 30 protected Rectangle attrTextBounds = null;31 protected Rectangle attrToUBounds = null;32 protected Rectangle attrImageBounds = null;30 protected Rectangle attrTextBounds; 31 protected Rectangle attrToUBounds; 32 protected Rectangle attrImageBounds; 33 33 34 34 static { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
r31434 r31790 26 26 private Point lastDragPoint; 27 27 28 private boolean isMoving = false;28 private boolean isMoving; 29 29 30 30 private boolean movementEnabled = true; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r31581 r31790 44 44 public class JMapViewer extends JPanel implements TileLoaderListener { 45 45 46 public static boolean debug = false;46 public static boolean debug; 47 47 48 48 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
r31739 r31790 142 142 */ 143 143 protected static class CacheLinkedListElement { 144 protected CacheEntry firstElement = null;144 protected CacheEntry firstElement; 145 145 protected CacheEntry lastElement; 146 146 protected int elementCount; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
r31570 r31790 27 27 private final class OsmTileJob implements TileJob { 28 28 private final Tile tile; 29 private InputStream input = null;30 private boolean force = false;29 private InputStream input; 30 private boolean force; 31 31 32 32 private OsmTileJob(Tile tile) { … … 101 101 public Map<String, String> headers = new HashMap<>(); 102 102 103 public int timeoutConnect = 0;104 public int timeoutRead = 0;103 public int timeoutConnect; 104 public int timeoutRead; 105 105 106 106 protected TileLoaderListener listener; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Tile.java
r31588 r31790 41 41 protected BufferedImage image; 42 42 protected String key; 43 protected volatile boolean loaded = false; // field accessed by multiple threads without any monitors, needs to be volatile44 protected volatile boolean loading = false;45 protected volatile boolean error = false;43 protected volatile boolean loaded; // field accessed by multiple threads without any monitors, needs to be volatile 44 protected volatile boolean loading; 45 protected volatile boolean error; 46 46 protected String error_message; 47 47 … … 89 89 90 90 private static class CachedCallable<V> implements Callable<V> { 91 private V result = null;91 private V result; 92 92 private Callable<V> callable; 93 93 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java
r31610 r31790 48 48 private static final Pattern quadkeyPattern = Pattern.compile("\\{quadkey\\}"); 49 49 private static final Pattern culturePattern = Pattern.compile("\\{culture\\}"); 50 private String brandLogoUri = null;50 private String brandLogoUri; 51 51 52 52 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/OsmTileSource.java
r31573 r31790 16 16 private static final String[] SERVER = {"a", "b", "c"}; 17 17 18 private int serverNum = 0;18 private int serverNum; 19 19 20 20 /** … … 42 42 private static final String[] SERVER = {"a", "b", "c"}; 43 43 44 private int serverNum = 0;44 private int serverNum; 45 45 46 46 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r31573 r31790 56 56 57 57 /** cached latitude used in {@link #tileYToLat(double, int)} */ 58 private double cachedLat = 0;58 private double cachedLat; 59 59 60 60 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TMSTileSource.java
r31785 r31790 5 5 6 6 protected int maxZoom; 7 protected int minZoom = 0;7 protected int minZoom; 8 8 9 9 public TMSTileSource(TileSourceInfo info) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r31435 r31790 32 32 public class TemplatedTMSTileSource extends TMSTileSource implements TemplatedTileSource { 33 33 34 private Random rand = null;35 private String[] randomParts = null;34 private Random rand; 35 private String[] randomParts; 36 36 private final Map<String, String> headers = new HashMap<>(); 37 37
Note:
See TracChangeset
for help on using the changeset viewer.