Changeset 29340 in osm for applications/editors/josm/plugins/smed2/src/symbols
- Timestamp:
- 2013-03-03T23:15:59+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.