Changeset 29340 in osm for applications
- Timestamp:
- 2013-03-03T23:15:59+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src
- Files:
-
- 1 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Lights.java
r29286 r29340 10 10 package seamap; 11 11 12 public class Light Render{12 public class Lights { 13 13 14 14 /* -
applications/editors/josm/plugins/smed2/src/seamap/Rules.java
r29287 r29340 15 15 import java.util.ArrayList; 16 16 17 import s57.S57val; 17 18 import s57.S57val.*; 18 19 import s57.S57att.*; … … 466 467 */ 467 468 } 469 468 470 private static void notices(Feature feature) { 469 471 if (zoom >= 14) { 472 double dx = 0.0, dy = 0.0; 473 switch (feature.type) { 474 case BCNCAR: 475 case BCNISD: 476 case BCNLAT: 477 case BCNSAW: 478 case BCNSPP: 479 case BCNWTW: 480 dy = 45.0; 481 break; 482 case NOTMRK: 483 dy = 0.0; 484 break; 485 default: 486 return; 487 } 488 Symbol s1 = null, s2 = null; 489 MarSYS sys = MarSYS.SYS_CEVN; 490 AttItem att = feature.atts.get(Att.MARSYS); 491 if (att != null) sys = (MarSYS)att.val; 492 ObjTab objs = feature.objs.get(Obj.NOTMRK); 493 int n = objs.size(); 494 if (n > 2) { 495 s1 = Notices.Notice; 496 n = 1; 497 } else { 498 for (AttMap atts : objs.values()) { 499 if (atts.get(Att.MARSYS) != null) sys = (MarSYS)atts.get(Att.MARSYS).val; 500 CatNMK cat = CatNMK.NMK_UNKN; 501 if (atts.get(Att.CATNMK) != null) cat = (CatNMK)atts.get(Att.CATNMK).val; 502 s2 = Notices.getNotice(cat, sys); 503 } 504 } 505 /* Obj_t *obj = getObj(item, NOTMRK, i); 506 if (obj == NULL) continue; 507 Atta_t add; 508 int idx = 0; 509 while ((add = getAttEnum(obj, ADDMRK, idx++)) != MRK_UNKN) { 510 if ((add == MRK_LTRI) && (i == 2)) swap = true; 511 if ((add == MRK_RTRI) && (i != 2)) swap = true; 512 } 513 } 514 } else { 515 516 } 517 for (int i = 0; i <=2; i++) { 518 Obj_t *obj = getObj(item, NOTMRK, i); 519 if (obj == NULL) continue; 520 Atta_t category = getAttEnum(obj, CATNMK, i); 521 Atta_t add; 522 int idx = 0; 523 int top=0, bottom=0, left=0, right=0; 524 while ((add = getAttEnum(obj, ADDMRK, idx++)) != MRK_UNKN) { 525 switch (add) { 526 case MRK_TOPB: 527 top = add; 528 break; 529 case MRK_BOTB: 530 case MRK_BTRI: 531 bottom = add; 532 break; 533 case MRK_LTRI: 534 left = add; 535 break; 536 case MRK_RTRI: 537 right = add; 538 break; 539 default: 540 break; 541 } 542 } 543 double orient = getAtt(obj, ORIENT) != NULL ? getAtt(obj, ORIENT)->val.val.f : 0.0; 544 int system = getAtt(obj, MARSYS) != NULL ? getAtt(obj, MARSYS)->val.val.e : 0; 545 double flip = 0.0; 546 char *symb = ""; 547 char *base = ""; 548 char *colour = "black"; 549 if ((system == SYS_BWR2) || (system == SYS_BNWR)) { 550 symb = bniwr_map[category]; 551 switch (category) { 552 case NMK_NANK: 553 case NMK_LMHR: 554 case NMK_KTPM...NMK_RSPD: 555 { 556 int bank = getAtt(obj, BNKWTW) != NULL ? getAtt(obj, BNKWTW)->val.val.e : 0; 557 switch (bank) { 558 case BWW_LEFT: 559 base = "notice_blb"; 560 colour = "red"; 561 break; 562 case BWW_RGHT: 563 base = "notice_brb"; 564 colour = "green"; 565 break; 566 default: 567 base = "notice_bsi"; 568 colour = "black"; 569 break; 570 } 571 } 572 default: 573 break; 574 } 575 } else if (system == SYS_PPWB) { 576 int bank = getAtt(obj, BNKWTW) != NULL ? getAtt(obj, BNKWTW)->val.val.e : 0; 577 if (bank != 0) { 578 switch (category) { 579 case NMK_WLAR: 580 if (bank == BNK_LEFT) 581 base = "notice_pwlarl"; 582 else 583 base = "notice_pwlarr"; 584 break; 585 case NMK_WRAL: 586 if (bank == BNK_LEFT) 587 base = "notice_pwrall"; 588 else 589 base = "notice_pwralr"; 590 break; 591 case NMK_KTPM: 592 if (bank == BNK_LEFT) 593 base = "notice_ppml"; 594 else 595 base = "notice_ppmr"; 596 break; 597 case NMK_KTSM: 598 if (bank == BNK_LEFT) 599 base = "notice_psml"; 600 else 601 base = "notice_psmr"; 602 break; 603 case NMK_KTMR: 604 if (bank == BNK_LEFT) 605 base = "notice_pmrl"; 606 else 607 base = "notice_pmrr"; 608 break; 609 case NMK_CRTP: 610 if (bank == BNK_LEFT) 611 base = "notice_pcpl"; 612 else 613 base = "notice_pcpr"; 614 break; 615 case NMK_CRTS: 616 if (bank == BNK_LEFT) 617 base = "notice_pcsl"; 618 else 619 base = "notice_pcsr"; 620 break; 621 default: 622 break; 623 } 624 } 625 } else { 626 symb = notice_map[category]; 627 switch (category) { 628 case NMK_NOVK...NMK_NWSH: 629 case NMK_NMTC...NMK_NLBG: 630 base = "notice_a"; 631 break; 632 case NMK_MVTL...NMK_CHDR: 633 base = "notice_b"; 634 break; 635 case NMK_PRTL...NMK_PRTR: 636 case NMK_OVHC...NMK_LBGP: 637 base = "notice_e"; 638 colour = "white"; 639 break; 640 default: 641 break; 642 } 643 switch (category) { 644 case NMK_MVTL: 645 case NMK_ANKP: 646 case NMK_PRTL: 647 case NMK_MWAL: 648 case NMK_MWAR: 649 flip = 180.0; 650 break; 651 case NMK_SWWR: 652 case NMK_WRSL: 653 case NMK_WARL: 654 flip = -90.0; 655 break; 656 case NMK_SWWC: 657 case NMK_SWWL: 658 case NMK_WLSR: 659 case NMK_WALR: 660 flip = 90.0; 661 break; 662 default: 663 break; 664 } 665 } 666 if (n == 2) { 667 dx = (((i != 2) && swap) || ((i == 2) && !swap)) ? -30.0 : 30.0; 668 } 669 if (top == MRK_TOPB) 670 renderSymbol(item, NOTMRK, "notice_board", "", "", BC, dx, dy, orient); 671 if (bottom == MRK_BOTB) 672 renderSymbol(item, NOTMRK, "notice_board", "", "", BC, dx, dy, orient+180); 673 if (bottom == MRK_BTRI) 674 renderSymbol(item, NOTMRK, "notice_triangle", "", "", BC, dx, dy, orient+180); 675 if (left == MRK_LTRI) 676 renderSymbol(item, NOTMRK, "notice_triangle", "", "", BC, dx, dy, orient-90); 677 if (right == MRK_RTRI) 678 renderSymbol(item, NOTMRK, "notice_triangle", "", "", BC, dx, dy, orient+90); 679 renderSymbol(item, NOTMRK, base, "", "", CC, dx, dy, orient); 680 renderSymbol(item, NOTMRK, symb, "", colour, CC, dx, dy, orient+flip); 681 } 682 */ 470 683 } 471 684 } -
applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
r29286 r29340 50 50 @Override 51 51 public void dataChanged(DataChangedEvent e) { 52 // System.out.println("DataChangedEvent"); 53 makeMap(); 54 if (rendering != null) rendering.zoomChanged(); 52 makeMap(); 55 53 } 56 54 57 55 @Override 58 56 public void nodeMoved(NodeMovedEvent e) { 59 // System.out.println("NodeMovedEvent"); 60 makeMap(); 61 if (rendering != null) rendering.zoomChanged(); 57 makeMap(); 62 58 } 63 59 64 60 @Override 65 61 public void otherDatasetChange(AbstractDatasetChangedEvent e) { 66 // System.out.println("AbstractDatasetChangedEvent"); 67 makeMap(); 68 if (rendering != null) rendering.zoomChanged(); 62 makeMap(); 69 63 } 70 64 71 65 @Override 72 66 public void primitivesAdded(PrimitivesAddedEvent e) { 73 // System.out.println("PrimitivesAddedEvent"); 74 makeMap(); 75 if (rendering != null) rendering.zoomChanged(); 67 makeMap(); 76 68 } 77 69 78 70 @Override 79 71 public void primitivesRemoved(PrimitivesRemovedEvent e) { 80 // System.out.println("PrimitivesRemovedEvent"); 81 makeMap(); 82 if (rendering != null) rendering.zoomChanged(); 72 makeMap(); 83 73 } 84 74 85 75 @Override 86 76 public void relationMembersChanged(RelationMembersChangedEvent e) { 87 // System.out.println("RelationMembersChangedEvent"); 88 makeMap(); 89 if (rendering != null) rendering.zoomChanged(); 77 makeMap(); 90 78 } 91 79 92 80 @Override 93 81 public void tagsChanged(TagsChangedEvent e) { 94 // System.out.println("TagsChangedEvent"); 95 makeMap(); 96 if (rendering != null) rendering.zoomChanged(); 82 makeMap(); 97 83 } 98 84 99 85 @Override 100 86 public void wayNodesChanged(WayNodesChangedEvent e) { 101 // System.out.println("WayNodesChangedEvent"); 102 makeMap(); 103 if (rendering != null) rendering.zoomChanged(); 87 makeMap(); 104 88 } 105 89 }; … … 180 164 data = newLayer.data; 181 165 makeMap(); 182 if (rendering != null) rendering.zoomChanged();183 166 } else { 184 167 data = null; … … 259 242 map.tagsDone(rel.getUniqueId()); 260 243 } 244 if (rendering != null) rendering.zoomChanged(); 261 245 } 262 246 } -
applications/editors/josm/plugins/smed2/src/symbols/Notices.java
r29204 r29340 15 15 import java.awt.Rectangle; 16 16 import java.awt.geom.*; 17 17 import java.util.EnumMap; 18 19 import s57.S57val.*; 18 20 import symbols.Symbols.*; 19 21 … … 252 254 NoticeA20.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Notices.Waterbike, 1.0, 0, 0, null, null))); 253 255 } 256 public static final Symbol NoticeB1a = new Symbol(); 257 public static final Symbol NoticeB1b = new Symbol(); 254 258 public static final Symbol NoticeB2a = new Symbol(); 255 259 public static final Symbol NoticeB2b = new Symbol(); … … 259 263 public static final Symbol NoticeB4b = new Symbol(); 260 264 public static final Symbol NoticeB5 = new Symbol(); 265 public static final Symbol NoticeB6 = new Symbol(); 261 266 public static final Symbol NoticeB7 = new Symbol(); 262 267 public static final Symbol NoticeB8 = new Symbol(); 263 public static final Symbol NoticeB11a = new Symbol(); 264 static { 265 NoticeB11a.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Notices.NoticeB, 1.0, 0, 0, null, null))); 266 NoticeB11a.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Notices.VHF, 1.0, 0, 0, null, null))); 268 public static final Symbol NoticeB9a = new Symbol(); 269 public static final Symbol NoticeB9b = new Symbol(); 270 public static final Symbol NoticeB11 = new Symbol(); 271 static { 272 NoticeB11.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Notices.NoticeB, 1.0, 0, 0, null, null))); 273 NoticeB11.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Notices.VHF, 1.0, 0, 0, null, null))); 267 274 } 268 275 public static final Symbol NoticeC1 = new Symbol(); 269 276 public static final Symbol NoticeC2 = new Symbol(); 270 277 public static final Symbol NoticeC3 = new Symbol(); 278 public static final Symbol NoticeC4 = new Symbol(); 271 279 public static final Symbol NoticeC5a = new Symbol(); 272 280 public static final Symbol NoticeC5b = new Symbol(); … … 275 283 public static final Symbol NoticeD2a = new Symbol(); 276 284 public static final Symbol NoticeD2b = new Symbol(); 285 public static final Symbol NoticeD3a = new Symbol(); 286 public static final Symbol NoticeD3b = new Symbol(); 277 287 public static final Symbol NoticeE1 = new Symbol(); 278 288 public static final Symbol NoticeE2 = new Symbol(); … … 280 290 public static final Symbol NoticeE4a = new Symbol(); 281 291 public static final Symbol NoticeE4b = new Symbol(); 292 public static final Symbol NoticeE5 = new Symbol(); 293 public static final Symbol NoticeE5_1 = new Symbol(); 294 public static final Symbol NoticeE5_2 = new Symbol(); 295 public static final Symbol NoticeE5_3 = new Symbol(); 282 296 public static final Symbol NoticeE5_4 = new Symbol(); 283 297 public static final Symbol NoticeE5_5 = new Symbol(); … … 292 306 public static final Symbol NoticeE5_14 = new Symbol(); 293 307 public static final Symbol NoticeE5_15 = new Symbol(); 308 public static final Symbol NoticeE6 = new Symbol(); 309 public static final Symbol NoticeE7 = new Symbol(); 294 310 public static final Symbol NoticeE7_1 = new Symbol(); 295 public static final Symbol Notice11 = new Symbol(); 296 public static final Symbol Notice13 = new Symbol(); 297 public static final Symbol Notice14 = new Symbol(); 311 public static final Symbol NoticeE8 = new Symbol(); 312 public static final Symbol NoticeE9a = new Symbol(); 313 public static final Symbol NoticeE9b = new Symbol(); 314 public static final Symbol NoticeE9c = new Symbol(); 315 public static final Symbol NoticeE9d = new Symbol(); 316 public static final Symbol NoticeE9e = new Symbol(); 317 public static final Symbol NoticeE9f = new Symbol(); 318 public static final Symbol NoticeE9g = new Symbol(); 319 public static final Symbol NoticeE9h = new Symbol(); 320 public static final Symbol NoticeE9i = new Symbol(); 321 public static final Symbol NoticeE10a = new Symbol(); 322 public static final Symbol NoticeE10b = new Symbol(); 323 public static final Symbol NoticeE10c = new Symbol(); 324 public static final Symbol NoticeE10d = new Symbol(); 325 public static final Symbol NoticeE10e = new Symbol(); 326 public static final Symbol NoticeE10f = new Symbol(); 327 public static final Symbol NoticeE11 = new Symbol(); 328 public static final Symbol NoticeE13 = new Symbol(); 329 public static final Symbol NoticeE14 = new Symbol(); 330 public static final Symbol NoticeE15 = new Symbol(); 331 public static final Symbol NoticeE16 = new Symbol(); 332 public static final Symbol NoticeE17 = new Symbol(); 333 public static final Symbol NoticeE18 = new Symbol(); 334 public static final Symbol NoticeE19 = new Symbol(); 335 public static final Symbol NoticeE20 = new Symbol(); 336 public static final Symbol NoticeE21 = new Symbol(); 337 public static final Symbol NoticeE22 = new Symbol(); 338 public static final Symbol NoticeE23 = new Symbol(); 339 public static final Symbol NoticeE24 = new Symbol(); 340 341 public static final EnumMap<CatNMK, Symbol> NmkCevni = new EnumMap<CatNMK, Symbol>(CatNMK.class); 342 static { 343 NmkCevni.put(CatNMK.NMK_UNKN, Notice); NmkCevni.put(CatNMK.NMK_NENT, NoticeA1); NmkCevni.put(CatNMK.NMK_CLSA, NoticeA1a); NmkCevni.put(CatNMK.NMK_NOVK, NoticeA2); 344 NmkCevni.put(CatNMK.NMK_NCOV, NoticeA3); NmkCevni.put(CatNMK.NMK_NPAS, NoticeA4); NmkCevni.put(CatNMK.NMK_NBRT, NoticeA5); NmkCevni.put(CatNMK.NMK_NBLL, NoticeA5_1); 345 NmkCevni.put(CatNMK.NMK_NANK, NoticeA6); NmkCevni.put(CatNMK.NMK_NMOR, NoticeA7); NmkCevni.put(CatNMK.NMK_NTRN, NoticeA8); NmkCevni.put(CatNMK.NMK_NWSH, NoticeA9); 346 NmkCevni.put(CatNMK.NMK_NPSL, NoticeA10a); NmkCevni.put(CatNMK.NMK_NPSR, NoticeA10b); NmkCevni.put(CatNMK.NMK_NMTC, NoticeA12); NmkCevni.put(CatNMK.NMK_NSPC, NoticeA13); 347 NmkCevni.put(CatNMK.NMK_NWSK, NoticeA14); NmkCevni.put(CatNMK.NMK_NSLC, NoticeA15); NmkCevni.put(CatNMK.NMK_NUPC, NoticeA16); NmkCevni.put(CatNMK.NMK_NSLB, NoticeA17); 348 NmkCevni.put(CatNMK.NMK_NWBK, NoticeA20); NmkCevni.put(CatNMK.NMK_NHSC, NoticeA18); NmkCevni.put(CatNMK.NMK_NLBG, NoticeA19); 349 NmkCevni.put(CatNMK.NMK_MVTL, NoticeB1a); NmkCevni.put(CatNMK.NMK_MVTR, NoticeB1b); NmkCevni.put(CatNMK.NMK_MVTP, NoticeB2a); NmkCevni.put(CatNMK.NMK_MVTS, NoticeB2b); 350 NmkCevni.put(CatNMK.NMK_KPTP, NoticeB3a); NmkCevni.put(CatNMK.NMK_KPTS, NoticeB3b); NmkCevni.put(CatNMK.NMK_CSTP, NoticeB4a); NmkCevni.put(CatNMK.NMK_CSTS, NoticeB4b); 351 NmkCevni.put(CatNMK.NMK_STOP, NoticeB5); NmkCevni.put(CatNMK.NMK_SPDL, NoticeB6); NmkCevni.put(CatNMK.NMK_SHRN, NoticeB7); NmkCevni.put(CatNMK.NMK_KPLO, NoticeB8); 352 NmkCevni.put(CatNMK.NMK_GWJN, NoticeB9a); NmkCevni.put(CatNMK.NMK_GWCS, NoticeB9b); NmkCevni.put(CatNMK.NMK_MKRC, NoticeB11); 353 NmkCevni.put(CatNMK.NMK_LMDP, NoticeC1); NmkCevni.put(CatNMK.NMK_LMHR, NoticeC2); NmkCevni.put(CatNMK.NMK_LMWD, NoticeC3); NmkCevni.put(CatNMK.NMK_NAVR, NoticeC4); 354 NmkCevni.put(CatNMK.NMK_CHDL, NoticeC5a); NmkCevni.put(CatNMK.NMK_CHDR, NoticeC5b); 355 NmkCevni.put(CatNMK.NMK_CHTW, NoticeD1a); NmkCevni.put(CatNMK.NMK_CHOW, NoticeD1b); NmkCevni.put(CatNMK.NMK_OPTR, NoticeD2a); NmkCevni.put(CatNMK.NMK_OPTL, NoticeD2b); 356 NmkCevni.put(CatNMK.NMK_PRTL, NoticeD3a); NmkCevni.put(CatNMK.NMK_PRTR, NoticeD3b); 357 NmkCevni.put(CatNMK.NMK_ENTP, NoticeE1); NmkCevni.put(CatNMK.NMK_OVHC, NoticeE2); NmkCevni.put(CatNMK.NMK_WEIR, NoticeE3); NmkCevni.put(CatNMK.NMK_FERN, NoticeE4a); 358 NmkCevni.put(CatNMK.NMK_FERI, NoticeE4b); NmkCevni.put(CatNMK.NMK_BRTP, NoticeE5); NmkCevni.put(CatNMK.NMK_BTLL, NoticeE5_1); NmkCevni.put(CatNMK.NMK_BTLS, NoticeE5_2); 359 NmkCevni.put(CatNMK.NMK_BTRL, NoticeE5_3); NmkCevni.put(CatNMK.NMK_BTUP, NoticeE5_4); NmkCevni.put(CatNMK.NMK_BTP1, NoticeE5_5); NmkCevni.put(CatNMK.NMK_BTP2, NoticeE5_6); 360 NmkCevni.put(CatNMK.NMK_BTP3, NoticeE5_7); NmkCevni.put(CatNMK.NMK_BTUN, NoticeE5_8); NmkCevni.put(CatNMK.NMK_BTN1, NoticeE5_9); NmkCevni.put(CatNMK.NMK_BTN2, NoticeE5_10); 361 NmkCevni.put(CatNMK.NMK_BTN3, NoticeE5_11); NmkCevni.put(CatNMK.NMK_BTUM, NoticeE5_12); NmkCevni.put(CatNMK.NMK_BTU1, NoticeE5_13); NmkCevni.put(CatNMK.NMK_BTU2, NoticeE5_14); 362 NmkCevni.put(CatNMK.NMK_BTU3, NoticeE5_15); NmkCevni.put(CatNMK.NMK_ANKP, NoticeE6); NmkCevni.put(CatNMK.NMK_MORP, NoticeE7); NmkCevni.put(CatNMK.NMK_VLBT, NoticeE7_1); 363 NmkCevni.put(CatNMK.NMK_TRNA, NoticeE8); NmkCevni.put(CatNMK.NMK_SWWC, NoticeE9a); NmkCevni.put(CatNMK.NMK_SWWR, NoticeE9b); NmkCevni.put(CatNMK.NMK_SWWL, NoticeE9c); 364 NmkCevni.put(CatNMK.NMK_WRSA, NoticeE9d); NmkCevni.put(CatNMK.NMK_WLSA, NoticeE9e); NmkCevni.put(CatNMK.NMK_WRSL, NoticeE9f); NmkCevni.put(CatNMK.NMK_WLSR, NoticeE9g); 365 NmkCevni.put(CatNMK.NMK_WRAL, NoticeE9h); NmkCevni.put(CatNMK.NMK_WLAR, NoticeE9i); NmkCevni.put(CatNMK.NMK_MWWC, NoticeE10a); NmkCevni.put(CatNMK.NMK_MWWJ, NoticeE10b); 366 NmkCevni.put(CatNMK.NMK_MWAR, NoticeE10c); NmkCevni.put(CatNMK.NMK_MWAL, NoticeE10d); NmkCevni.put(CatNMK.NMK_WARL, NoticeE10e); NmkCevni.put(CatNMK.NMK_WALR, NoticeE10f); 367 NmkCevni.put(CatNMK.NMK_PEND, NoticeE11); NmkCevni.put(CatNMK.NMK_DWTR, NoticeE13); NmkCevni.put(CatNMK.NMK_TELE, NoticeE14); NmkCevni.put(CatNMK.NMK_MTCP, NoticeE15); 368 NmkCevni.put(CatNMK.NMK_SPCP, NoticeE16); NmkCevni.put(CatNMK.NMK_WSKP, NoticeE17); NmkCevni.put(CatNMK.NMK_SLCP, NoticeE18); NmkCevni.put(CatNMK.NMK_UPCP, NoticeE19); 369 NmkCevni.put(CatNMK.NMK_SLBP, NoticeE20); NmkCevni.put(CatNMK.NMK_RADI, NoticeE23); NmkCevni.put(CatNMK.NMK_WTBP, NoticeE24); NmkCevni.put(CatNMK.NMK_HSCP, NoticeE21); 370 NmkCevni.put(CatNMK.NMK_LBGP, NoticeE22); 371 }; 372 373 public static final EnumMap<CatNMK, Symbol> NmkBniwr = new EnumMap<CatNMK, Symbol>(CatNMK.class); 374 static { 375 NmkBniwr.put(CatNMK.NMK_NANK, Notice); NmkBniwr.put(CatNMK.NMK_LMHR, Notice); NmkBniwr.put(CatNMK.NMK_OPTR, Notice); NmkBniwr.put(CatNMK.NMK_OPTL, Notice); 376 NmkBniwr.put(CatNMK.NMK_WRAL, Notice); NmkBniwr.put(CatNMK.NMK_WLAR, Notice); NmkBniwr.put(CatNMK.NMK_KTPM, Notice); NmkBniwr.put(CatNMK.NMK_KTSM, Notice); 377 NmkBniwr.put(CatNMK.NMK_KTMR, Notice); NmkBniwr.put(CatNMK.NMK_CRTP, Notice); NmkBniwr.put(CatNMK.NMK_CRTS, Notice); NmkBniwr.put(CatNMK.NMK_TRBM, Notice); 378 NmkBniwr.put(CatNMK.NMK_RSPD, Notice); 379 } 380 381 public static final EnumMap<CatNMK, Symbol> NmkPpwbc = new EnumMap<CatNMK, Symbol>(CatNMK.class); 382 static { 383 NmkPpwbc.put(CatNMK.NMK_WRAL, Notice); NmkPpwbc.put(CatNMK.NMK_WLAR, Notice); NmkPpwbc.put(CatNMK.NMK_KTPM, Notice); NmkPpwbc.put(CatNMK.NMK_KTSM, Notice); 384 NmkPpwbc.put(CatNMK.NMK_KTMR, Notice); NmkPpwbc.put(CatNMK.NMK_CRTP, Notice); NmkPpwbc.put(CatNMK.NMK_CRTS, Notice); 385 } 386 387 public static Symbol getNotice(CatNMK cat, MarSYS sys) { 388 Symbol symbol = null; 389 switch (sys) { 390 case SYS_CEVN: 391 symbol = NmkCevni.get(cat); 392 break; 393 case SYS_BNWR: 394 symbol = NmkBniwr.get(cat); 395 break; 396 case SYS_PPWB: 397 symbol = NmkPpwbc.get(cat); 398 break; 399 } 400 return symbol; 401 } 298 402 }
Note:
See TracChangeset
for help on using the changeset viewer.