Changeset 35086 in osm for applications/editors/josm/plugins/seachart/src/render/Signals.java
- Timestamp:
- 2019-08-15T09:28:54+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Signals.java
r34906 r35086 208 208 CatRTB cat = (CatRTB) getAttEnum(Obj.RTPBCN, Att.CATRTB); 209 209 String wal = getAttStr(Obj.RTPBCN, Att.RADWAL); 210 switch (cat) { 211 case RTB_RAMK: 212 bstr += " Ramark"; 213 break; 214 case RTB_RACN: 215 bstr += " Racon"; 216 String astr = getAttStr(Obj.RTPBCN, Att.SIGGRP); 217 if (!astr.isEmpty()) { 218 bstr += "(" + astr + ")"; 219 } 220 Double per = (Double) getAttVal(Obj.RTPBCN, Att.SIGPER); 221 Double mxr = (Double) getAttVal(Obj.RTPBCN, Att.VALMXR); 222 if ((per != null) || (mxr != null)) { 223 bstr += (astr.isEmpty() ? " " : ""); 224 if (per != null) 225 bstr += (per != 0) ? per.toString() + "s" : ""; 226 if (mxr != null) 227 bstr += (mxr != 0) ? mxr.toString() + "M" : ""; 228 } 229 break; 230 default: 231 break; 232 } 210 if ((cat == CatRTB.RTB_RAMK) || (cat == CatRTB.RTB_RACN)) { 211 switch (cat) { 212 case RTB_RAMK: 213 bstr += " Ramark"; 214 break; 215 case RTB_RACN: 216 bstr += " Racon"; 217 break; 218 default: 219 break; 220 } 221 String astr = getAttStr(Obj.RTPBCN, Att.SIGGRP); 222 if (!astr.isEmpty()) { 223 bstr += "(" + astr + ")"; 224 } 225 Double per = (Double) getAttVal(Obj.RTPBCN, Att.SIGPER); 226 Double mxr = (Double) getAttVal(Obj.RTPBCN, Att.VALMXR); 227 if ((per != null) || (mxr != null)) { 228 bstr += (astr.isEmpty() ? " " : ""); 229 if (per != null) 230 bstr += (per != 0) ? per.toString() + "s" : ""; 231 if (mxr != null) 232 bstr += (mxr != 0) ? mxr.toString() + "M" : ""; 233 } 234 } 233 235 if (!wal.isEmpty()) { 234 236 switch (wal) {
Note:
See TracChangeset
for help on using the changeset viewer.
