Changeset 35429 in osm for applications/editors/josm
- Timestamp:
- 2020-05-05T13:48:29+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r35404 r35429 461 461 switch ((CatSEA) getAttEnum(feature.type, Att.CATSEA)) { 462 462 case SEA_RECH: 463 if ((Renderer.zoom >= 1 0) && (name != null))463 if ((Renderer.zoom >= 15) && (name != null)) 464 464 if (feature.geom.prim == Pflag.LINE) { 465 Renderer.lineText(name, new Font("Arial", Font.PLAIN, 150), Color.black, -40);465 Renderer.lineText(name, new Font("Arial", Font.PLAIN, 60), Color.black, -40); 466 466 } else { 467 Renderer.labelText(name, new Font("Arial", Font.PLAIN, 150), Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0,-40)));467 Renderer.labelText(name, new Font("Arial", Font.PLAIN, 60), Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 0))); 468 468 } 469 469 break; 470 470 case SEA_BAY: 471 if ((Renderer.zoom >= 1 2) && (name != null))471 if ((Renderer.zoom >= 15) && (name != null)) 472 472 if (feature.geom.prim == Pflag.LINE) { 473 Renderer.lineText(name, new Font("Arial", Font.PLAIN, 150), Color.black, -40);473 Renderer.lineText(name, new Font("Arial", Font.PLAIN, 60), Color.black, -40); 474 474 } else { 475 Renderer.labelText(name, new Font("Arial", Font.PLAIN, 150), Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0,-40)));475 Renderer.labelText(name, new Font("Arial", Font.PLAIN, 60), Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 0))); 476 476 } 477 477 break; … … 900 900 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.CC, AffineTransform.getTranslateInstance(0, -50))); 901 901 } 902 } else if (Renderer.zoom >= 16) { 903 if (testAttribute(Obj.BUISGL, Att.STATUS, StsSTS.STS_ILLD)) { 904 Renderer.symbol(Beacons.Floodlight); 902 if (Renderer.zoom >= 16) { 903 if (testAttribute(Obj.BUISGL, Att.STATUS, StsSTS.STS_ILLD)) { 904 Renderer.symbol(Beacons.Floodlight); 905 } 906 ArrayList<Symbol> symbols = new ArrayList<>(); 907 ArrayList<FncFNC> fncs = (ArrayList<FncFNC>) getAttList(Obj.BUISGL, Att.FUNCTN); 908 for (FncFNC fnc : fncs) { 909 symbols.add(Landmarks.Funcs.get(fnc)); 910 } 911 if (feature.objs.containsKey(Obj.SMCFAC)) { 912 ArrayList<CatSCF> scfs = (ArrayList<CatSCF>) getAttList(Obj.SMCFAC, Att.CATSCF); 913 for (CatSCF scf : scfs) { 914 symbols.add(Facilities.Cats.get(scf)); 915 } 916 } 917 Renderer.cluster(symbols); 918 Signals.addSignals(); 905 919 } 906 ArrayList<Symbol> symbols = new ArrayList<>();907 ArrayList<FncFNC> fncs = (ArrayList<FncFNC>) getAttList(Obj.BUISGL, Att.FUNCTN);908 for (FncFNC fnc : fncs) {909 symbols.add(Landmarks.Funcs.get(fnc));910 }911 if (feature.objs.containsKey(Obj.SMCFAC)) {912 ArrayList<CatSCF> scfs = (ArrayList<CatSCF>) getAttList(Obj.SMCFAC, Att.CATSCF);913 for (CatSCF scf : scfs) {914 symbols.add(Facilities.Cats.get(scf));915 }916 }917 Renderer.cluster(symbols);918 Signals.addSignals();919 920 } 920 921 break; … … 940 941 Renderer.symbol(Harbours.Harbour); 941 942 } 943 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.CC, AffineTransform.getTranslateInstance(0, -80))); 942 944 } 943 945 break;
Note:
See TracChangeset
for help on using the changeset viewer.