Changeset 35086 in osm


Ignore:
Timestamp:
2019-08-15T09:28:54+02:00 (5 years ago)
Author:
malcolmh
Message:

[Seachart] Publish new release

Location:
applications/editors/josm/plugins/seachart
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/jicons/examples.xml

    r33949 r35086  
    77    <tag k="seamark:topmark:shape" v="cylinder" />
    88  </icon>
    9   <icon width="100" height="100" scale="0.25" file="green_pillar" format="SVG" >
    10     <tag k="seamark:type" v="buoy_lateral" />
    11     <tag k="seamark:buoy_lateral:shape" v="pillar" />
    12     <tag k="seamark:buoy_lateral:colour" v="green" />
    13     <tag k="seamark:topmark:colour" v="green" />
    14     <tag k="seamark:topmark:shape" v="cone, point up" />
     9  <icon width="1000" height="200" scale="1.0" file="waverider" format="SVG" >
     10    <tag k="seamark:type" v="buoy_special_purpose" />
     11    <tag k="seamark:buoy_special_purpose:shape" v="spherical" />
     12    <tag k="seamark:buoy_special_purpose:colour" v="yellow" />
     13    <tag k="seamark:buoy_special_purpose:purpose" v="odas" />
     14    <tag k="seamark:light:colour" v="yellow" />
     15    <tag k="seamark:light:character" v="Fl" />
     16    <tag k="seamark:light:group" v="5" />
     17    <tag k="seamark:light:period" v="20" />
     18    <tag k="seamark:name" v="Hornsea Waverider" />
    1519  </icon>
    1620  <icon width="200" height="200" scale="0.5" file="hib" format="PNG" >
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r34993 r35086  
    10381038                        }
    10391039                        Signals.addSignals();
     1040            addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50)));
    10401041                }
    10411042        }
     
    13401341                                                Renderer.lineVector(new LineStyle(Color.black, 10, new float[] { 40, 40 }, null));
    13411342                                                if (Renderer.zoom >= 15)
    1342                                                         Renderer.lineText("(covers)", new Font("Arial", Font.PLAIN, 60), Color.black, 80);
     1343                                                        Renderer.lineText("(covers)", new Font("Arial", Font.PLAIN, 40), Color.black, 80);
    13431344                                        } else {
    13441345                                                Renderer.lineVector(new LineStyle(Color.black, 10, null, null));
    13451346                                        }
    13461347                                        if (Renderer.zoom >= 15)
    1347                                                 Renderer.lineText("Training Wall", new Font("Arial", Font.PLAIN, 60), Color.black, -30);
     1348                                                Renderer.lineText("Training Wall", new Font("Arial", Font.PLAIN, 40), Color.black, -30);
    13481349                                        break;
    13491350                                case SLC_SWAY:
  • applications/editors/josm/plugins/seachart/src/render/Signals.java

    r34906 r35086  
    208208                        CatRTB cat = (CatRTB) getAttEnum(Obj.RTPBCN, Att.CATRTB);
    209209                        String wal = getAttStr(Obj.RTPBCN, Att.RADWAL);
    210                         switch (cat) {
    211                         case RTB_RAMK:
    212                                 bstr += " Ramark";
    213                                 break;
    214                         case RTB_RACN:
    215                                 bstr += " Racon";
    216                                 String astr = getAttStr(Obj.RTPBCN, Att.SIGGRP);
    217                                 if (!astr.isEmpty()) {
    218                                         bstr += "(" + astr + ")";
    219                                 }
    220                                 Double per = (Double) getAttVal(Obj.RTPBCN, Att.SIGPER);
    221                                 Double mxr = (Double) getAttVal(Obj.RTPBCN, Att.VALMXR);
    222                                 if ((per != null) || (mxr != null)) {
    223                                         bstr += (astr.isEmpty() ? " " : "");
    224                                         if (per != null)
    225                                                 bstr += (per != 0) ? per.toString() + "s" : "";
    226                                         if (mxr != null)
    227                                                 bstr += (mxr != 0) ? mxr.toString() + "M" : "";
    228                                 }
    229                                 break;
    230                         default:
    231                                 break;
    232                         }
     210            if ((cat == CatRTB.RTB_RAMK) || (cat == CatRTB.RTB_RACN)) {
     211                switch (cat) {
     212                case RTB_RAMK:
     213                    bstr += " Ramark";
     214                    break;
     215                case RTB_RACN:
     216                    bstr += " Racon";
     217                    break;
     218                default:
     219                    break;
     220                }
     221                String astr = getAttStr(Obj.RTPBCN, Att.SIGGRP);
     222                if (!astr.isEmpty()) {
     223                    bstr += "(" + astr + ")";
     224                }
     225                Double per = (Double) getAttVal(Obj.RTPBCN, Att.SIGPER);
     226                Double mxr = (Double) getAttVal(Obj.RTPBCN, Att.VALMXR);
     227                if ((per != null) || (mxr != null)) {
     228                    bstr += (astr.isEmpty() ? " " : "");
     229                    if (per != null)
     230                        bstr += (per != 0) ? per.toString() + "s" : "";
     231                    if (mxr != null)
     232                        bstr += (mxr != 0) ? mxr.toString() + "M" : "";
     233                }
     234            }
    233235                        if (!wal.isEmpty()) {
    234236                                switch (wal) {
Note: See TracChangeset for help on using the changeset viewer.