Changeset 27920 in osm for applications
- Timestamp:
- 2012-02-22T19:59:29+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/canvec_helper
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/canvec_helper/TODO
r27915 r27920 3 3 i need to rewrite it to use http://ftp2.cits.rncan.gc.ca/osm/pub/ZippedOsm.txt 4 4 5 replace the temp images (copied from piclayer) with proper ones -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_helper.java
r27915 r27920 10 10 super(info); 11 11 System.out.println("in constructor"); 12 Main.main.menu.imageryMenu.add(new CanvecHelperAction(this)); 12 13 } 13 14 public void mapFrameInitialized(MapFrame old, MapFrame new1) { … … 16 17 } 17 18 private synchronized void updateLayer() { 18 if(layer == null) {19 layer = new canvec_layer("canvec tile helper",this);20 Main.main.addLayer(layer);21 }22 19 } 23 20 private canvec_layer layer; -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_layer.java
r27915 r27920 8 8 import java.awt.Point; 9 9 import java.awt.Color; 10 import java.awt.Toolkit; 10 11 import java.io.IOException; 11 12 12 13 import javax.swing.Action; 13 14 import javax.swing.Icon; 15 import javax.swing.ImageIcon; 14 16 import org.openstreetmap.josm.actions.RenameLayerAction; 15 17 import org.openstreetmap.josm.data.Bounds; … … 23 25 // most of the layout was copied from the openstreetbugs plugin to get things started 24 26 public class canvec_layer extends Layer implements MouseListener { 27 private Icon layerIcon = null; 25 28 canvec_helper plugin_self; 26 29 private ArrayList<CanVecTile> tiles = new ArrayList<CanVecTile>(); 30 27 31 public canvec_layer(String name,canvec_helper self){ 28 32 super(name); … … 33 37 if (tile.isValid()) tiles.add(tile); 34 38 } 39 layerIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(getClass().getResource("/images/layericon.png"))); 35 40 } 36 41 public Action[] getMenuEntries() { … … 52 57 } 53 58 public void mergeFrom(Layer from) {} 54 public Icon getIcon() { 55 return null; // FIXME 56 } 59 public Icon getIcon() { return layerIcon; } 57 60 public void paint(Graphics2D g, MapView mv, Bounds bounds) { 58 61 long start = System.currentTimeMillis();
Note:
See TracChangeset
for help on using the changeset viewer.