Changeset 31343 in osm for applications/editors/josm/plugins/seachart/src/render/Renderer.java
- Timestamp:
- 2015-07-06T16:44:58+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Renderer.java
r31157 r31343 43 43 sScale = symbolScale[zoom] * factor; 44 44 if (map != null) { 45 Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon)); 46 Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon)); 47 g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY()))); 48 g2.setBackground(Symbols.Bwater); 45 if (context.clip()) { 46 Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon)); 47 Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon)); 48 g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY()))); 49 } 50 g2.setBackground(context.background()); 49 51 g2.clearRect(rect.x, rect.y, rect.width, rect.height); 50 52 g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Note:
See TracChangeset
for help on using the changeset viewer.