Changeset 30737 in osm for applications/editors/josm/plugins/canvec_helper/src
- Timestamp:
- 2014-10-18T23:07:52+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanVecTile.java
r30495 r30737 25 25 CanvecLayer layer; 26 26 public boolean can_download = false; 27 private ArrayList<String> sub_tile_ids = new ArrayList< String>();27 private ArrayList<String> sub_tile_ids = new ArrayList<>(); 28 28 private boolean zip_scanned = false; 29 29 30 private ArrayList<CanVecTile> sub_tiles = new ArrayList< CanVecTile>();30 private ArrayList<CanVecTile> sub_tiles = new ArrayList<>(); 31 31 private boolean sub_tiles_made = false; 32 32 … … 232 232 } 233 233 private void make_sub_tiles(int layer) { 234 ArrayList<String> buffer = new ArrayList< String>();234 ArrayList<String> buffer = new ArrayList<>(); 235 235 Pattern p; 236 236 if (sub_tiles_made) return; … … 250 250 } else { 251 251 sub_tiles.add(new CanVecTile(corda,last_cell,0,"",this.layer,buffer)); 252 buffer = new ArrayList< String>();252 buffer = new ArrayList<>(); 253 253 buffer.add(m.group(0)); 254 254 } … … 271 271 } else { 272 272 sub_tiles.add(new CanVecTile(corda,cordb,last_cell2,"",this.layer,buffer)); 273 buffer = new ArrayList< String>();273 buffer = new ArrayList<>(); 274 274 buffer.add(m.group(0)); 275 275 } -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecLayer.java
r30495 r30737 36 36 private int max_zoom = 4; 37 37 public CanvecHelper plugin_self; 38 private ArrayList<CanVecTile> tiles = new ArrayList< CanVecTile>();39 public ArrayList<CanVecTile> downloadable = new ArrayList< CanVecTile>();40 public ArrayList<CanVecTile> openable = new ArrayList< CanVecTile>();38 private ArrayList<CanVecTile> tiles = new ArrayList<>(); 39 public ArrayList<CanVecTile> downloadable = new ArrayList<>(); 40 public ArrayList<CanVecTile> openable = new ArrayList<>(); 41 41 42 42 public CanvecLayer(String name,CanvecHelper self){ … … 56 56 String line; 57 57 int last_cell = -1; 58 ArrayList<String> list = new ArrayList< String>();58 ArrayList<String> list = new ArrayList<>(); 59 59 while ((line = br.readLine()) != null) { 60 60 Matcher m = p.matcher(line); … … 66 66 CanVecTile tile = new CanVecTile(last_cell,"",0,"",this,list); 67 67 if (tile.isValid()) tiles.add(tile); 68 list = new ArrayList< String>();68 list = new ArrayList<>(); 69 69 list.add(m.group(0)); 70 70 } … … 205 205 //long start = System.currentTimeMillis(); 206 206 //System.out.println("painting the area covered by "+bounds.toString()); 207 downloadable = new ArrayList< CanVecTile>();208 openable = new ArrayList< CanVecTile>();207 downloadable = new ArrayList<>(); 208 openable = new ArrayList<>(); 209 209 // loop over each canvec tile in the db and check bounds.intersects(Bounds) 210 210 g.setColor(Color.red);
Note:
See TracChangeset
for help on using the changeset viewer.