Changeset 29854 in osm for applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecLayer.java
- Timestamp:
- 2013-08-21T03:47:16+02:00 (12 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecLayer.java
r29853 r29854 31 31 32 32 // most of the layout was copied from the openstreetbugs plugin to get things started 33 public class canvec_layer extends Layer implements MouseListener {33 public class CanvecLayer extends Layer implements MouseListener { 34 34 private Icon layerIcon = null; 35 35 private int max_zoom = 4; 36 public canvec_helper plugin_self;36 public CanvecHelper plugin_self; 37 37 private ArrayList<CanVecTile> tiles = new ArrayList<CanVecTile>(); 38 38 public ArrayList<CanVecTile> downloadable = new ArrayList<CanVecTile>(); 39 39 public ArrayList<CanVecTile> openable = new ArrayList<CanVecTile>(); 40 40 41 public canvec_layer(String name,canvec_helper self){41 public CanvecLayer(String name,CanvecHelper self){ 42 42 super(name); 43 43 plugin_self = self; … … 71 71 } else System.out.print("bad line '" + line + "'\n"); 72 72 } 73 br.close(); 73 74 CanVecTile tile = new CanVecTile(last_cell,"",0,"",this,list); 74 75 if (tile.isValid()) tiles.add(tile); … … 92 93 } 93 94 public class MaxZoomAction extends AbstractAction implements LayerAction { 94 private canvec_layer parent;95 public MaxZoomAction( canvec_layer parent) {95 private CanvecLayer parent; 96 public MaxZoomAction(CanvecLayer parent) { 96 97 this.parent = parent; 97 98 } … … 124 125 } 125 126 private class OpenOsmAction extends AbstractAction implements LayerAction { 126 private canvec_layer layer;127 public OpenOsmAction( canvec_layer layer) {127 private CanvecLayer layer; 128 public OpenOsmAction(CanvecLayer layer) { 128 129 this.layer = layer; 129 130 } … … 155 156 } 156 157 private class DownloadCanvecAction extends AbstractAction implements LayerAction { 157 private canvec_layer parent;158 public DownloadCanvecAction( canvec_layer parent) {158 private CanvecLayer parent; 159 public DownloadCanvecAction(CanvecLayer parent) { 159 160 this.parent = parent; 160 161 } … … 207 208 tile.paint(g,mv,bounds,max_zoom); 208 209 } 209 long end = System.currentTimeMillis(); 210 //long end = System.currentTimeMillis(); 210 211 //System.out.println((end-start)+"ms spent"); 211 212 }
Note:
See TracChangeset
for help on using the changeset viewer.