Changeset 35086 in osm for applications/editors/josm
- Timestamp:
- 2019-08-15T09:28:54+02:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/seachart
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/jicons/examples.xml
r33949 r35086 7 7 <tag k="seamark:topmark:shape" v="cylinder" /> 8 8 </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" /> 15 19 </icon> 16 20 <icon width="200" height="200" scale="0.5" file="hib" format="PNG" > -
applications/editors/josm/plugins/seachart/src/render/Rules.java
r34993 r35086 1038 1038 } 1039 1039 Signals.addSignals(); 1040 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50))); 1040 1041 } 1041 1042 } … … 1340 1341 Renderer.lineVector(new LineStyle(Color.black, 10, new float[] { 40, 40 }, null)); 1341 1342 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); 1343 1344 } else { 1344 1345 Renderer.lineVector(new LineStyle(Color.black, 10, null, null)); 1345 1346 } 1346 1347 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); 1348 1349 break; 1349 1350 case SLC_SWAY: -
applications/editors/josm/plugins/seachart/src/render/Signals.java
r34906 r35086 208 208 CatRTB cat = (CatRTB) getAttEnum(Obj.RTPBCN, Att.CATRTB); 209 209 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 } 233 235 if (!wal.isEmpty()) { 234 236 switch (wal) {
Note:
See TracChangeset
for help on using the changeset viewer.