Changeset 10212 in josm for trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
- Timestamp:
- 2016-05-15T00:51:10+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r10001 r10212 199 199 @Override 200 200 public void paint(Graphics g) { 201 try { 202 super.paint(g); 203 204 // draw selection rectangle 205 if (iSelectionRectStart != null && iSelectionRectEnd != null) { 206 Rectangle box = new Rectangle(getMapPosition(iSelectionRectStart, false)); 207 box.add(getMapPosition(iSelectionRectEnd, false)); 208 209 g.setColor(new Color(0.9f, 0.7f, 0.7f, 0.6f)); 210 g.fillRect(box.x, box.y, box.width, box.height); 211 212 g.setColor(Color.BLACK); 213 g.drawRect(box.x, box.y, box.width, box.height); 214 } 215 } catch (Exception e) { 216 Main.error(e); 201 super.paint(g); 202 203 // draw selection rectangle 204 if (iSelectionRectStart != null && iSelectionRectEnd != null) { 205 Rectangle box = new Rectangle(getMapPosition(iSelectionRectStart, false)); 206 box.add(getMapPosition(iSelectionRectEnd, false)); 207 208 g.setColor(new Color(0.9f, 0.7f, 0.7f, 0.6f)); 209 g.fillRect(box.x, box.y, box.width, box.height); 210 211 g.setColor(Color.BLACK); 212 g.drawRect(box.x, box.y, box.width, box.height); 217 213 } 218 214 }
Note:
See TracChangeset
for help on using the changeset viewer.