Changeset 32393 in osm for applications/editors/josm/plugins/seachart/src/render
- Timestamp:
- 2016-06-24T02:19:11+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/render
- Files:
-
- 2 edited
-
Rules.java (modified) (6 diffs)
-
Signals.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r32380 r32393 32 32 static final DecimalFormat df = new DecimalFormat("#.#"); 33 33 34 static final EnumMap<ColCOL, Color> bodyColours = new EnumMap< ColCOL, Color>(ColCOL.class);34 static final EnumMap<ColCOL, Color> bodyColours = new EnumMap<>(ColCOL.class); 35 35 static { 36 36 bodyColours.put(ColCOL.COL_UNK, new Color(0, true)); … … 50 50 } 51 51 52 static final EnumMap<ColPAT, Patt> pattMap = new EnumMap< ColPAT, Patt>(ColPAT.class);52 static final EnumMap<ColPAT, Patt> pattMap = new EnumMap<>(ColPAT.class); 53 53 static { 54 54 pattMap.put(ColPAT.PAT_UNKN, Patt.Z); … … 144 144 @SuppressWarnings("unchecked") 145 145 static Scheme getScheme(Obj obj) { 146 ArrayList<Color> colours = new ArrayList< Color>();146 ArrayList<Color> colours = new ArrayList<>(); 147 147 for (ColCOL col : (ArrayList<ColCOL>) getAttList(obj, Att.COLOUR)) { 148 148 colours.add(bodyColours.get(col)); 149 149 } 150 ArrayList<Patt> patterns = new ArrayList< Patt>();150 ArrayList<Patt> patterns = new ArrayList<>(); 151 151 for (ColPAT pat : (ArrayList<ColPAT>) getAttList(obj, Att.COLPAT)) { 152 152 patterns.add(pattMap.get(pat)); … … 806 806 case BUISGL: 807 807 if (Renderer.zoom >= 16) { 808 ArrayList<Symbol> symbols = new ArrayList< Symbol>();808 ArrayList<Symbol> symbols = new ArrayList<>(); 809 809 ArrayList<FncFNC> fncs = (ArrayList<FncFNC>) getAttList(Obj.BUISGL, Att.FUNCTN); 810 810 for (FncFNC fnc : fncs) { … … 992 992 private static void marinas() { 993 993 if (Renderer.zoom >= 16) { 994 ArrayList<Symbol> symbols = new ArrayList< Symbol>();994 ArrayList<Symbol> symbols = new ArrayList<>(); 995 995 ArrayList<CatSCF> scfs = (ArrayList<CatSCF>) getAttList(Obj.SMCFAC, Att.CATSCF); 996 996 for (CatSCF scf : scfs) { … … 1248 1248 Renderer.lineVector(new LineStyle(Color.black, 2, null, new Color(0xffe000))); 1249 1249 if ((Renderer.zoom >= 16) && feature.objs.containsKey(Obj.SMCFAC)) { 1250 ArrayList<Symbol> symbols = new ArrayList< Symbol>();1250 ArrayList<Symbol> symbols = new ArrayList<>(); 1251 1251 ArrayList<CatSCF> scfs = (ArrayList<CatSCF>) getAttList(Obj.SMCFAC, Att.CATSCF); 1252 1252 for (CatSCF scf : scfs) { -
applications/editors/josm/plugins/seachart/src/render/Signals.java
r32095 r32393 30 30 public class Signals extends Rules{ 31 31 32 static final EnumMap<ColCOL, Color> LightColours = new EnumMap< ColCOL, Color>(ColCOL.class);32 static final EnumMap<ColCOL, Color> LightColours = new EnumMap<>(ColCOL.class); 33 33 static { 34 34 LightColours.put(ColCOL.COL_WHT, new Color(0xffff00)); … … 43 43 } 44 44 45 static final EnumMap<ColCOL, String> LightLetters = new EnumMap< ColCOL, String>(ColCOL.class);45 static final EnumMap<ColCOL, String> LightLetters = new EnumMap<>(ColCOL.class); 46 46 static { 47 47 LightLetters.put(ColCOL.COL_WHT, "W"); … … 55 55 } 56 56 57 static final EnumMap<LitCHR, String> LightCharacters = new EnumMap< LitCHR, String>(LitCHR.class);57 static final EnumMap<LitCHR, String> LightCharacters = new EnumMap<>(LitCHR.class); 58 58 static { 59 59 LightCharacters.put(LitCHR.CHR_F, "F"); … … 84 84 } 85 85 86 static final EnumMap<CatFOG, String> fogSignals = new EnumMap< CatFOG, String>(CatFOG.class);86 static final EnumMap<CatFOG, String> fogSignals = new EnumMap<>(CatFOG.class); 87 87 static { 88 88 fogSignals.put(CatFOG.FOG_EXPL, "Explos"); … … 553 553 } 554 554 if (!found) { 555 ArrayList<LitSect> tmp = new ArrayList< LitSect>();555 ArrayList<LitSect> tmp = new ArrayList<>(); 556 556 tmp.add(lit); 557 557 groupings.add(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.
