Changeset 3653 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor
- Timestamp:
- 2010-11-14T17:54:23+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r3329 r3653 111 111 public void drawNode(Node n) { 112 112 /* check, if the node is visible at all */ 113 if((n.getEastNorth().east() > maxEN.east() ) || 114 (n.getEastNorth().north() > maxEN.north()) || 115 (n.getEastNorth().east() < minEN.east() ) || 116 (n.getEastNorth().north() < minEN.north())) 113 EastNorth en = n.getEastNorth(); 114 if((en.east() > maxEN.east() ) || 115 (en.north() > maxEN.north()) || 116 (en.east() < minEN.east() ) || 117 (en.north() < minEN.north())) 117 118 return; 118 119 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3565 r3653 216 216 public void drawNode(Node n, Color color, int size, boolean fill, String name) { 217 217 if (size > 1) { 218 Point p = nc.getPoint(n); 219 if ((p.x < 0) || (p.y < 0) || (p.x > nc.getWidth()) || (p.y > nc.getHeight())) return; 218 220 int radius = size / 2; 219 Point p = nc.getPoint(n);220 if ((p.x < 0) || (p.y < 0) || (p.x > nc.getWidth())221 || (p.y > nc.getHeight()))222 return;223 221 224 222 if (inactive || n.isDisabled()) { … … 228 226 } 229 227 if (fill) { 230 g.fillRect(p.x - radius, p.y - radius, size, size); 231 g.drawRect(p.x - radius, p.y - radius, size, size); 228 g.fillRect(p.x - radius, p.y - radius, size + 1, size + 1); 232 229 } else { 233 230 g.drawRect(p.x - radius, p.y - radius, size, size);
Note:
See TracChangeset
for help on using the changeset viewer.