Changeset 31722 in osm for applications/editors/josm/plugins/seachart/src/render
- Timestamp:
- 2015-10-29T23:01:53+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/render
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r31716 r31722 119 119 } 120 120 121 @SuppressWarnings("unchecked") 121 122 public static Enum<?> getAttEnum(Feature feature, Obj obj, int idx, Att att) { 122 123 ArrayList<?> list = (ArrayList<?>)getAttVal(feature, obj, idx, att); … … 127 128 } 128 129 130 @SuppressWarnings("unchecked") 129 131 public static ArrayList<?> getAttList(Feature feature, Obj obj, int idx, Att att) { 130 132 ArrayList<Enum<?>> list = (ArrayList<Enum<?>>)getAttVal(feature, obj, idx, att); … … 137 139 } 138 140 141 @SuppressWarnings("unchecked") 139 142 static Scheme getScheme(Feature feature, Obj obj) { 140 143 ArrayList<Color> colours = new ArrayList<Color>(); … … 406 409 } 407 410 411 @SuppressWarnings("unchecked") 408 412 private static void beacons() { 409 413 if ((Renderer.zoom >= 14) || ((Renderer.zoom >= 12) && ((feature.type == Obj.BCNLAT) || (feature.type == Obj.BCNCAR)))) { … … 451 455 } 452 456 457 @SuppressWarnings("unchecked") 453 458 private static void buoys() { 454 459 if ((Renderer.zoom >= 14) || ((Renderer.zoom >= 12) && ((feature.type == Obj.BOYLAT) || (feature.type == Obj.BOYCAR)))) { … … 620 625 } 621 626 627 @SuppressWarnings("unchecked") 622 628 private static void harbours() { 623 629 String name = getName(); … … 737 743 } 738 744 745 @SuppressWarnings("unchecked") 739 746 private static void highways() { 740 747 switch (feature.type) { … … 767 774 } 768 775 776 @SuppressWarnings("unchecked") 769 777 private static void landmarks() { 770 778 ArrayList<CatLMK> cats = (ArrayList<CatLMK>) getAttList(feature, feature.type, 0, Att.CATLMK); … … 814 822 } 815 823 824 @SuppressWarnings("unchecked") 816 825 private static void marinas() { 817 826 if (Renderer.zoom >= 16) { … … 870 879 } 871 880 MarSYS sys = MarSYS.SYS_CEVN; 872 BnkWTW bnk = BnkWTW.BWW_UNKN;873 AttVal att = feature.atts.get(Att.MARSYS);881 // BnkWTW bnk = BnkWTW.BWW_UNKN; 882 AttVal<?> att = feature.atts.get(Att.MARSYS); 874 883 if (att != null) sys = (MarSYS)att.val; 875 884 ObjTab objs = feature.objs.get(Obj.NOTMRK); … … 968 977 } 969 978 979 @SuppressWarnings("unchecked") 970 980 private static void platforms() { 971 981 ArrayList<CatOFP> cats = (ArrayList<CatOFP>) getAttList(feature, Obj.OFSPLF, 0, Att.CATOFP); … … 1020 1030 } 1021 1031 1032 @SuppressWarnings("unchecked") 1022 1033 private static void shoreline() { 1023 1034 CatSLC cat = (CatSLC) getAttEnum(feature, feature.type, 0, Att.CATSLC); … … 1060 1071 } 1061 1072 1073 @SuppressWarnings("unchecked") 1062 1074 private static void stations() { 1063 1075 if (Renderer.zoom >= 14) { -
applications/editors/josm/plugins/seachart/src/render/Signals.java
r31343 r31722 167 167 } 168 168 169 @SuppressWarnings("unchecked") 169 170 public static void radioStations(Feature feature) { 170 171 Renderer.symbol(feature, Beacons.RadarStation);
Note:
See TracChangeset
for help on using the changeset viewer.