Changeset 18595 in osm for applications/editors/josm/plugins/openstreetbugs
- Timestamp:
- 2009-11-14T19:38:46+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/openstreetbugs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/build.xml
r18503 r18595 26 26 <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/> 28 <attribute name="Plugin-Mainversion" value="24 01"/>28 <attribute name="Plugin-Mainversion" value="2450"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java
r18482 r18595 32 32 import java.awt.Component; 33 33 import java.awt.Dimension; 34 import java.awt.Graphics; 34 import java.awt.Graphics2D; 35 35 import java.awt.Image; 36 36 import java.awt.Point; … … 48 48 import org.openstreetmap.josm.Main; 49 49 import org.openstreetmap.josm.actions.RenameLayerAction; 50 import org.openstreetmap.josm.data.Bounds; 50 51 import org.openstreetmap.josm.data.SelectionChangedListener; 51 52 import org.openstreetmap.josm.data.osm.DataSet; … … 118 119 119 120 @Override 120 public void paint(Graphics g, MapView mv) { 121 public void paint(Graphics2D g, MapView mv, Bounds bounds) { 121 122 Object[] nodes = data.getNodes().toArray(); 122 123 // This loop renders all the bug icons … … 178 179 179 180 int tx = p.x + (width / 2) + 5; 180 int ty = ( int)(p.y - height / 2) -1;181 int ty = (p.y - height / 2) -1; 181 182 g.translate(tx, ty); 182 183 … … 189 190 for(int x = 0; x < 2; x++) { 190 191 Dimension d = tooltip.getUI().getPreferredSize(tooltip); 191 d.width = Math.min(d.width, ( int)(mv.getWidth()*2/3));192 d.width = Math.min(d.width, (mv.getWidth()*2/3)); 192 193 tooltip.setSize(d); 193 194 tooltip.paint(g); … … 231 232 if(e.getButton() == MouseEvent.BUTTON1) { 232 233 if(Main.map.mapView.getActiveLayer() == this) { 233 Node n = (Node)getNearestNode(e.getPoint());234 Node n = getNearestNode(e.getPoint()); 234 235 if(data.getNodes().contains(n)) { 235 236 data.setSelected(n); … … 250 251 if(e.isPopupTrigger()) { 251 252 if(Main.map.mapView.getActiveLayer() == this) { 252 Node n = (Node)getNearestNode(e.getPoint());253 Node n = getNearestNode(e.getPoint()); 253 254 OsbAction.setSelectedNode(n); 254 255 if(data.getNodes().contains(n)) {
Note:
See TracChangeset
for help on using the changeset viewer.