Changeset 26550 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-08-19T21:33:21+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r26549 r26550 576 576 577 577 for (Obj obj : ObjMAP.keySet()) { 578 if (keys.containsKey("seamark:" + ObjMAP.get(obj) + ":system")) {579 str = keys.get("seamark:" + ObjMAP.get(obj) + ":system");580 if (str.equals("iala-a"))581 setRegion(Reg.A);582 else if (str.equals("iala-b"))583 setRegion(Reg.B);584 else setRegion(Reg.C);585 }586 }587 588 for (Obj obj : ObjMAP.keySet()) {589 578 if (keys.containsKey("seamark:" + ObjMAP.get(obj) + ":category")) { 590 579 str = keys.get("seamark:" + ObjMAP.get(obj) + ":category"); … … 637 626 if (PatMAP.get(pat).equals(str)) { 638 627 setPattern(Ent.BODY, pat); 628 } 629 } 630 } 631 } 632 633 for (Obj obj : ObjMAP.keySet()) { 634 if (keys.containsKey("seamark:" + ObjMAP.get(obj) + ":system")) { 635 str = keys.get("seamark:" + ObjMAP.get(obj) + ":system"); 636 if (str.equals("iala-a")) 637 setRegion(Reg.A); 638 else if (str.equals("iala-b")) 639 setRegion(Reg.B); 640 else setRegion(Reg.C); 641 } else if (GrpMAP.get(object) == Grp.LAT) { 642 if (getCategory() != Cat.UNKNOWN) { 643 switch (getCategory()) { 644 case LAT_PORT: 645 case LAT_PREF_PORT: 646 if (getColour(Ent.BODY, 0) == Col.RED) { 647 setRegion(Reg.A); 648 if (getColour(Ent.BODY, 1) == Col.WHITE) 649 setRegion(Reg.C); 650 } 651 if (getColour(Ent.BODY, 0) == Col.GREEN) 652 setRegion(Reg.B); 653 break; 654 case LAT_STBD: 655 case LAT_PREF_STBD: 656 if (getColour(Ent.BODY, 0) == Col.GREEN) { 657 setRegion(Reg.A); 658 if (getColour(Ent.BODY, 1) == Col.WHITE) 659 setRegion(Reg.C); 660 } 661 if (getColour(Ent.BODY, 0) == Col.RED) 662 setRegion(Reg.B); 663 break; 639 664 } 640 665 }
Note:
See TracChangeset
for help on using the changeset viewer.