Changeset 31077 in osm for applications/viewer/jmapviewer/src
- Timestamp:
- 2015-04-06T01:40:38+02:00 (10 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Demo.java
r30900 r31077 11 11 import java.awt.event.MouseAdapter; 12 12 import java.awt.event.MouseEvent; 13 import java.io.IOException;14 13 15 14 import javax.swing.JButton; … … 102 101 }); 103 102 JComboBox<TileLoader> tileLoaderSelector; 104 try { 105 tileLoaderSelector = new JComboBox<>(new TileLoader[] { new OsmFileCacheTileLoader(map()), new OsmTileLoader(map()) }); 106 } catch (IOException e) { 107 tileLoaderSelector = new JComboBox<>(new TileLoader[] { new OsmTileLoader(map()) }); 108 } 103 tileLoaderSelector = new JComboBox<>(new TileLoader[] { new OsmTileLoader(map()) }); 109 104 tileLoaderSelector.addItemListener(new ItemListener() { 110 105 public void itemStateChanged(ItemEvent e) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r31032 r31077 986 986 987 987 public void tileLoadingFinished(Tile tile, boolean success) { 988 tile.setLoaded(success); 988 989 repaint(); 989 990 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
r31054 r31077 86 86 return tile; 87 87 } 88 89 @Override 90 public void submit() { 91 run(); 92 93 } 88 94 }; 89 95 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileController.java
r30900 r31077 46 46 } 47 47 if (!tile.isLoaded()) { 48 jobDispatcher.addJob(tileLoader.createTileLoaderJob(tile));48 tileLoader.createTileLoaderJob(tile).submit(); 49 49 } 50 50 return tile; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/CachedTileLoader.java
r30900 r31077 6 6 */ 7 7 public interface CachedTileLoader { 8 public void clearCache(TileSource source); 9 public void clearCache(TileSource source, TileClearController controller); 8 public void clearCache(); 10 9 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileJob.java
r30900 r31077 18 18 */ 19 19 public Tile getTile(); 20 21 /** 22 * submits download job to backend. 23 */ 24 void submit(); 20 25 }
Note:
See TracChangeset
for help on using the changeset viewer.