Ignore:
Timestamp:
2020-03-21T09:42:31+01:00 (5 years ago)
Author:
malcolmh
Message:

add new jchart utility

File:
1 edited

Legend:

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

    r35120 r35388  
    356356                        return false;
    357357                } catch (Exception e) {
     358                    e.printStackTrace();
    358359                        return true;
    359360                }
     
    979980                                        fncSym = Landmarks.RadioTV;
    980981                                Renderer.symbol(catSym);
    981                                 if (catSym != Landmarks.Spire)
    982                                         Renderer.symbol(fncSym);
     982                                Renderer.symbol(fncSym);
    983983                                break;
    984984                        case SILTNK:
     
    10491049                        ArrayList<CatSCF> scfs = (ArrayList<CatSCF>) getAttList(Obj.SMCFAC, Att.CATSCF);
    10501050                        for (CatSCF scf : scfs) {
    1051                                 symbols.add(Facilities.Cats.get(scf));
     1051                            Symbol sym = Facilities.Cats.get(scf);
     1052                            if (sym != null) symbols.add(sym);
    10521053                        }
    10531054                        Renderer.cluster(symbols);
     
    10591060                        switch ((CatMOR) getAttEnum(feature.type, Att.CATMOR)) {
    10601061                        case MOR_DLPN:
    1061                                 Renderer.symbol(Harbours.Dolphin);
     1062                            if (feature.geom.prim == Pflag.AREA) {
     1063                                Renderer.lineVector(new LineStyle(Color.black, 4, Symbols.Yland));
     1064                            } else {
     1065                                Renderer.symbol(Harbours.Dolphin);
     1066                            }
    10621067                    Signals.addSignals();
    10631068                                break;
     
    10791084                                Renderer.symbol(Topmarks.TopMooring, Topmarks.BuoyDeltas.get(shape));
    10801085                            Signals.addSignals();
     1086                            addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50)));
    10811087                            }
    10821088                                break;
     
    15421548            }
    15431549        }
     1550        addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(50, 0)));
    15441551        if (Renderer.zoom >= 15) {
    15451552                Renderer.labelText("V-AIS", new Font("Arial", Font.PLAIN, 40), Symbols.Msymb, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 70)));
Note: See TracChangeset for help on using the changeset viewer.