Changeset 35840 in osm for applications
- Timestamp:
- 2021-10-31T20:25:33+01:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r35837 r35840 311 311 if (testObject(Obj.ISTZNE)) for (Feature f : objects) if (testFeature(f)) separation(); 312 312 if (testObject(Obj.SBDARE)) for (Feature f : objects) if (testFeature(f)) areas(); 313 if (testObject(Obj.SPRING)) for (Feature f : objects) if (testFeature(f)) areas(); 313 314 if (testObject(Obj.SNDWAV)) for (Feature f : objects) if (testFeature(f)) areas(); 314 315 if (testObject(Obj.WEDKLP)) for (Feature f : objects) if (testFeature(f)) areas(); 316 if (testObject(Obj.SEGRAS)) for (Feature f : objects) if (testFeature(f)) areas(); 315 317 if (testObject(Obj.OSPARE)) for (Feature f : objects) if (testFeature(f)) areas(); 316 318 if (testObject(Obj.FAIRWY)) for (Feature f : objects) if (testFeature(f)) areas(); … … 386 388 } 387 389 390 @SuppressWarnings("unchecked") 388 391 private static void areas() { 389 392 String name = getName(); … … 552 555 break; 553 556 case SBDARE: 554 if (Renderer.zoom >= 1 2) {557 if (Renderer.zoom >= 14) { 555 558 String str = ""; 556 559 String sep = "."; … … 649 652 } 650 653 if (!str.isEmpty()) { 651 Renderer.labelText(str, new Font("Arial", Font.ITALIC, 60), Color.black, new Delta(Handle.CC));654 Renderer.labelText(str, new Font("Arial", Font.ITALIC, 40), Color.black, new Delta(Handle.CC)); 652 655 } 653 656 } … … 655 658 break; 656 659 case WEDKLP: 657 if (Renderer.zoom >= 1 2) {660 if (Renderer.zoom >= 14) { 658 661 switch ((CatWED) getAttEnum(feature.type, Att.CATWED)) { 659 662 case WED_KELP: … … 664 667 } 665 668 break; 669 case WED_SWED: 670 Renderer.labelText("Wd", new Font("Arial", Font.ITALIC, 40), Color.black, new Delta(Handle.CC)); 671 break; 672 case WED_SGRS: 673 Renderer.labelText("Sg", new Font("Arial", Font.ITALIC, 40), Color.black, new Delta(Handle.CC)); 674 break; 675 case WED_SGSO: 676 break; 666 677 default: 667 678 break; 668 679 } 669 680 } 681 break; 682 case SEGRAS: 683 Renderer.labelText("Sg", new Font("Arial", Font.ITALIC, 40), Color.black, new Delta(Handle.CC)); 684 break; 685 case SPRING: 686 Renderer.symbol(Areas.Spring); 670 687 break; 671 688 case SPLARE: -
applications/editors/josm/plugins/seachart/src/s57/S57obj.java
r34906 r35840 27 27 TSSBND, TSSCRS, TSSLPT, TSSRON, TSEZNE, TUNNEL, TWRTPT, UWTROC, UNSARE, VEGATN, WATTUR, WATFAL, WEDKLP, WRECKS, TS_FEB, NOTMRK, 28 28 WTWAXS, WTWPRF, BUNSTA, COMARE, HRBBSN, LOKARE, LKBSPT, PRTARE, REFDMP, TERMNL, TRNBSN, WTWARE, WTWGAG, TISDGE, VEHTRF, EXCNST, 29 LG_SDM, LG_VSP, LITMIN, LITMAJ, VAATON 29 LG_SDM, LG_VSP, LITMIN, LITMAJ, VAATON, SEGRAS 30 30 } 31 31 … … 65 65 ObjS57.put(Obj.WATTUR, 156); ObjS57.put(Obj.WATFAL, 157); ObjS57.put(Obj.WEDKLP, 158); ObjS57.put(Obj.WRECKS, 159); ObjS57.put(Obj.TS_FEB, 160); 66 66 ObjS57.put(Obj.MPAARE, 199); ObjS57.put(Obj.M_COVR, 302); ObjS57.put(Obj.M_NSYS, 306); ObjS57.put(Obj.LITMAJ, 74); ObjS57.put(Obj.LITMIN, 90); 67 ObjS57.put(Obj.VAATON, 900); 67 ObjS57.put(Obj.VAATON, 900); ObjS57.put(Obj.SEGRAS, 901); 68 68 } 69 69 … … 115 115 ObjStr.put(Obj.RCTLPT, "recommended_traffic_lane"); ObjStr.put(Obj.RSCSTA, "rescue_station"); ObjStr.put(Obj.RESARE, "restricted_area"); 116 116 ObjStr.put(Obj.RETRFL, "retro_reflector"); ObjStr.put(Obj.RIVERS, "river"); ObjStr.put(Obj.ROADWY, "road"); ObjStr.put(Obj.RUNWAY, "runway"); 117 ObjStr.put(Obj.SNDWAV, "sand _waves"); ObjStr.put(Obj.SEAARE, "sea_area"); ObjStr.put(Obj.SPLARE, "seaplane_landing_area"); ObjStr.put(Obj.SBDARE, "seabed_area");117 ObjStr.put(Obj.SNDWAV, "sandwaves"); ObjStr.put(Obj.SEAARE, "sea_area"); ObjStr.put(Obj.SPLARE, "seaplane_landing_area"); ObjStr.put(Obj.SBDARE, "seabed_area"); 118 118 ObjStr.put(Obj.SLCONS, "shoreline_construction"); ObjStr.put(Obj.SISTAT, "signal_station_traffic"); ObjStr.put(Obj.SISTAW, "signal_station_warning"); 119 119 ObjStr.put(Obj.SILTNK, "tank"); ObjStr.put(Obj.SLOTOP, "slope_topline"); ObjStr.put(Obj.SLOGRD, "sloping_ground"); ObjStr.put(Obj.SMCFAC, "small_craft_facility"); … … 130 130 ObjStr.put(Obj.TISDGE, "time_schedule"); ObjStr.put(Obj.VEHTRF, "vehicle_transfer"); ObjStr.put(Obj.EXCNST, "exceptional_structure"); ObjStr.put(Obj.MPAARE, "protected_area"); 131 131 ObjStr.put(Obj.LITMAJ, "light_major"); ObjStr.put(Obj.LITMIN, "light_minor"); ObjStr.put(Obj.M_COVR, "coverage"); ObjStr.put(Obj.M_NSYS, "system"); 132 ObjStr.put(Obj.VAATON, "virtual_aton"); 132 ObjStr.put(Obj.VAATON, "virtual_aton"); ObjStr.put(Obj.SEGRAS, "seagrass"); 133 133 } 134 134 -
applications/editors/josm/plugins/seachart/src/symbols/Areas.java
r35685 r35840 267 267 g2.setBackground(new Color(0, true)); 268 268 g2.clearRect(0, 0, 100, 100); 269 g2.setPaint(new Color(0xffd400)); 270 Path2D.Double p = new Path2D.Double(); p.moveTo(0.0, 34.5); p.lineTo(03.3, 30.8); p.lineTo(09.9, 19.3); p.lineTo(13.2, 16.0); p.lineTo(16.5, 16.1); p.lineTo(18.2, 19.5); 269 g2.setPaint(Color.black); 270 Path2D.Double p = new Path2D.Double(); 271 p.moveTo(0.0, 34.5); p.lineTo(03.3, 30.8); p.lineTo(09.9, 19.3); p.lineTo(13.2, 16.0); p.lineTo(16.5, 16.1); p.lineTo(18.2, 19.5); 271 272 p.lineTo(19.9, 25.0); p.lineTo(21.6, 30.3); p.lineTo(23.3, 33.4); p.lineTo(25.0, 33.3); p.lineTo(28.3, 30.1); p.lineTo(31.6, 25.0); p.lineTo(34.9, 20.1); p.lineTo(38.2, 17.2); 272 p.lineTo(41.5, 17.3); p.lineTo(43.2, 20.3); p.lineTo(44.9, 25); p.lineTo(46.6, 29.6); p.lineTo(48.3, 32.2); p.lineTo(50.0, 32.1); 273 p.lineTo(41.5, 17.3); p.lineTo(43.2, 20.3); p.lineTo(44.9, 25); p.lineTo(46.6, 29.6); p.lineTo(48.3, 32.2); p.lineTo(50.0, 32.1); 273 274 p.moveTo(50.0, 84.5); p.lineTo(53.3, 80.8); p.lineTo(56.6, 75.0); p.lineTo(59.9, 69.3); p.lineTo(63.2, 66.0); p.lineTo(66.5, 66.1); p.lineTo(68.2, 69.5); p.lineTo(69.9, 75.0); 274 275 p.lineTo(71.6, 80.3); p.lineTo(73.3, 83.4); p.lineTo(75.0, 83.3); p.lineTo(78.3, 80.1); p.lineTo(81.6, 75.0); p.lineTo(84.9, 70.1); p.lineTo(88.2, 67.2); p.lineTo(91.5, 67.3); 275 276 p.lineTo(93.2, 70.3); p.lineTo(94.9, 75.0); p.lineTo(96.6, 79.6); p.lineTo(98.3, 82.2); p.lineTo(100.0, 82.1); 276 277 g2.draw(p); 278 } 279 280 public static final Symbol Spring = new Symbol(); 281 static { 282 Spring.add(new Instr(Form.FILL, Color.black)); 283 Spring.add(new Instr(Form.STRK, new BasicStroke(5, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND))); 284 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(0, 0, 7.5, 7.5))); 285 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-20, 0, 7.5, 7.5))); 286 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-40, 0, 7.5, 7.5))); 287 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(20, 0, 7.5, 7.5))); 288 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(40, 0, 7.5, 7.5))); 289 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(0, -20, 7.5, 7.5))); 290 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(0, -40, 7.5, 7.5))); 291 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(0, -60, 7.5, 7.5))); 292 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(0, -80, 7.5, 7.5))); 293 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-15, -90, 7.5, 7.5))); 294 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(15, -90, 7.5, 7.5))); 295 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-35, -85, 7.5, 7.5))); 296 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(35, -85, 7.5, 7.5))); 297 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-50, -70, 7.5, 7.5))); 298 Spring.add(new Instr(Form.ELPS, new Ellipse2D.Double(50, -70, 7.5, 7.5))); 277 299 } 278 300 … … 289 311 static { 290 312 Graphics2D g2 = KelpA.createGraphics(); 291 g2.setStroke(new BasicStroke( 8, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));313 g2.setStroke(new BasicStroke(6, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); 292 314 g2.setBackground(new Color(0, true)); 293 315 g2.clearRect(0, 0, 240, 240);
Note:
See TracChangeset
for help on using the changeset viewer.