Changeset 31343 in osm for applications/editors/josm/plugins/seachart/src/render
- Timestamp:
- 2015-07-06T16:44:58+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/render
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/seachart/src/render/ChartContext.java ¶
r30894 r31343 10 10 package render; 11 11 12 import java.awt.Color; 12 13 import java.awt.geom.Point2D; 13 14 … … 17 18 Point2D getPoint(Snode coord); 18 19 double mile(Feature feature); 20 boolean clip(); 21 Color background(); 19 22 } -
TabularUnified 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); -
TabularUnified applications/editors/josm/plugins/seachart/src/render/Rules.java ¶
r31044 r31343 887 887 int i = 0; 888 888 for (AttMap atts : objs.values()) { 889 if (atts.get(Att.MARSYS) != null) sys = (MarSYS)atts.get(Att.MARSYS).val; 889 if (atts.get(Att.MARSYS) != null) sys = (MarSYS)(atts.get(Att.MARSYS).val); 890 890 CatNMK cat = CatNMK.NMK_UNKN; 891 if (atts.get(Att.CATNMK) != null) cat = (CatNMK)atts.get(Att.CATNMK).val; 891 if (atts.get(Att.CATNMK) != null) cat = (CatNMK)(atts.get(Att.CATNMK).val); 892 892 Symbol sym = Notices.getNotice(cat, sys); 893 893 Handle h = Handle.CC; -
TabularUnified applications/editors/josm/plugins/seachart/src/render/Signals.java ¶
r31063 r31343 283 283 284 284 public static void lights(Feature feature) { 285 Enum<ColCOL> col = null; 285 /* Enum<ColCOL> col = null; 286 286 Enum<ColCOL> tcol = null; 287 287 ObjTab lights = feature.objs.get(Obj.LIGHTS); … … 412 412 AttMap m0 = group.get(i); 413 413 AttMap m1 = group.get(i+1); 414 if (((m0.containsKey(Att.VALNMR) && m1.containsKey(Att.VALNMR) && ((int)m0.get(Att.VALNMR).val < (int)m1.get(Att.VALNMR).val)))414 if (((m0.containsKey(Att.VALNMR) && m1.containsKey(Att.VALNMR) && ((int)(m0.get(Att.VALNMR).val) < (int)(m1.get(Att.VALNMR).val)))) 415 415 || (!m0.containsKey(Att.VALNMR) && m1.containsKey(Att.VALNMR))) { 416 416 AttMap tmp = group.remove(i); … … 421 421 } 422 422 } 423 } 423 */ } 424 424 425 425 }
Note:
See TracChangeset
for help on using the changeset viewer.