Changeset 29805 in osm for applications/editors/josm/plugins/canvec_helper/src
- Timestamp:
- 2013-08-01T18:46:11+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecHelperAction.java
r27926 r29805 10 10 parent_temp = parent; 11 11 } 12 @Override 12 13 public void actionPerformed(java.awt.event.ActionEvent action) { 13 14 canvec_layer layer; -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/SetMaxZoom.java
r27931 r29805 12 12 this.parent = parent; 13 13 } 14 @Override 14 15 public void actionPerformed(ActionEvent ev) { 15 16 parent.setMaxZoom(level); -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_helper.java
r27926 r29805 10 10 super(info); 11 11 System.out.println("in constructor"); 12 Main.main.menu.imagery Menu.add(new CanvecHelperAction(this));12 Main.main.menu.imagerySubMenu.add(new CanvecHelperAction(this)); 13 13 } 14 @Override 14 15 public void mapFrameInitialized(MapFrame old, MapFrame new1) { 15 16 updateLayer(); -
applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_layer.java
r27950 r29805 7 7 import java.awt.event.MouseListener; 8 8 import java.awt.Graphics2D; 9 import java.awt.Point;10 9 import java.awt.Toolkit; 11 10 import java.io.BufferedReader; … … 16 15 import java.util.regex.Matcher; 17 16 import java.util.regex.Pattern; 18 import java.util.zip.ZipException;19 17 import javax.swing.AbstractAction; 20 18 import javax.swing.Action; … … 23 21 import javax.swing.JMenu; 24 22 import javax.swing.JMenuItem; 25 //import org.openstreetmap.josm.actions.RenameLayerAction;26 23 import org.openstreetmap.josm.data.Bounds; 27 24 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; … … 83 80 } 84 81 } 82 @Override 85 83 public Action[] getMenuEntries() { 86 84 return new Action[]{ … … 98 96 this.parent = parent; 99 97 } 98 @Override 100 99 public void actionPerformed(ActionEvent e) {} 100 @Override 101 101 public boolean supportLayers(List<Layer> layers) { 102 102 return false; 103 103 } 104 @Override 104 105 public Component createMenuComponent() { 105 106 JMenu max_zoom = new JMenu("max zoom"); … … 117 118 this.tile = tile; 118 119 } 120 @Override 119 121 public void actionPerformed(ActionEvent arg0) { 120 122 tile.can_download = true; … … 126 128 this.layer = layer; 127 129 } 130 @Override 128 131 public void actionPerformed(ActionEvent e) {} 132 @Override 129 133 public Component createMenuComponent() { 130 134 JMenu OpenOsm = new JMenu("Open tile"); … … 134 138 return OpenOsm; 135 139 } 140 @Override 136 141 public boolean supportLayers(List<Layer> layers) { 137 142 return false; … … 144 149 this.tile = tile; 145 150 } 151 @Override 146 152 public void actionPerformed(ActionEvent e) { 147 153 tile.load_raw_osm(); … … 153 159 this.parent = parent; 154 160 } 161 @Override 155 162 public void actionPerformed(ActionEvent e) {} 163 @Override 156 164 public boolean supportLayers(List<Layer> layers) { 157 165 return false; 158 166 } 167 @Override 159 168 public Component createMenuComponent() { 160 169 JMenu downloadCanvec = new JMenu("Download zip's"); … … 168 177 this.max_zoom = max_zoom; 169 178 } 179 @Override 170 180 public Object getInfoComponent() { 171 181 return getToolTipText(); 172 182 } 183 @Override 173 184 public String getToolTipText() { 174 185 return tr("canvec tile helper"); 175 186 } 187 @Override 176 188 public void visitBoundingBox(BoundingXYVisitor v) {} 189 @Override 177 190 public boolean isMergable(Layer other) { 178 191 return false; 179 192 } 193 @Override 180 194 public void mergeFrom(Layer from) {} 195 @Override 181 196 public Icon getIcon() { return layerIcon; } 197 @Override 182 198 public void paint(Graphics2D g, MapView mv, Bounds bounds) { 183 199 //long start = System.currentTimeMillis(); … … 194 210 //System.out.println((end-start)+"ms spent"); 195 211 } 212 @Override 196 213 public void mouseExited(MouseEvent e) {} 214 @Override 197 215 public void mouseEntered(MouseEvent e) {} 216 @Override 198 217 public void mouseReleased(MouseEvent e) {} 218 @Override 199 219 public void mousePressed(MouseEvent e) {} 220 @Override 200 221 public void mouseClicked(MouseEvent e) { 201 222 System.out.println("click!");
Note:
See TracChangeset
for help on using the changeset viewer.