Changeset 35429 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-05-05T13:48:29+02:00 (4 years ago)
Author:
malcolmh
Message:

[Seachart] Publish new release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r35404 r35429  
    461461                        switch ((CatSEA) getAttEnum(feature.type, Att.CATSEA)) {
    462462                        case SEA_RECH:
    463                                 if ((Renderer.zoom >= 10) && (name != null))
     463                                if ((Renderer.zoom >= 15) && (name != null))
    464464                                        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);
    466466                                        } 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)));
    468468                                        }
    469469                                break;
    470470                        case SEA_BAY:
    471                                 if ((Renderer.zoom >= 12) && (name != null))
     471                                if ((Renderer.zoom >= 15) && (name != null))
    472472                                        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);
    474474                                        } 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)));
    476476                                        }
    477477                                break;
     
    900900                    addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.CC, AffineTransform.getTranslateInstance(0, -50)));
    901901                }
    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();
    905919                }
    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();
    919920            }
    920921            break;
     
    940941                                        Renderer.symbol(Harbours.Harbour);
    941942                                }
     943                addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.CC, AffineTransform.getTranslateInstance(0, -80)));
    942944                        }
    943945                        break;
Note: See TracChangeset for help on using the changeset viewer.