Changeset 35114 in osm for applications
- Timestamp:
- 2019-09-19T14:24:33+02:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/render
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r35112 r35114 963 963 if (!hasAttribute(Obj.LNDMRK, Att.CATLMK) && (!hasAttribute(Obj.LNDMRK, Att.FUNCTN) || testAttribute(Obj.LNDMRK, Att.FUNCTN, FncFNC.FNC_LGHT)) && hasObject(Obj.LIGHTS)) { 964 964 lights(); 965 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50))); 966 } 967 else if (Renderer.zoom >= 12) { 965 } else if (Renderer.zoom >= 12) { 968 966 switch (feature.type) { 969 967 case LNDMRK: -
applications/editors/josm/plugins/seachart/src/render/Signals.java
r35096 r35114 18 18 import s57.S57val.CatROS; 19 19 import s57.S57val.CatRTB; 20 import s57.S57val.CatRAS; 20 21 import s57.S57val.ColCOL; 21 22 import s57.S57val.LitCHR; … … 108 109 fogSignals(); 109 110 if (feature.objs.containsKey(Obj.RTPBCN)) 110 radar Stations();111 radarTransponders(); 111 112 if (feature.objs.containsKey(Obj.RADSTA)) 112 113 radarStations(); … … 201 202 } 202 203 203 public static void radarStations() { 204 if (Renderer.zoom >= 11) 205 Renderer.symbol(Beacons.RadarStation); 206 if (Renderer.zoom >= 15) { 207 String bstr = ""; 208 CatRTB cat = (CatRTB) getAttEnum(Obj.RTPBCN, Att.CATRTB); 209 String wal = getAttStr(Obj.RTPBCN, Att.RADWAL); 204 public static void radarStations() { 205 if (Renderer.zoom >= 11) 206 Renderer.symbol(Beacons.RadarStation); 207 if (Renderer.zoom >= 15) { 208 CatRAS cat = (CatRAS) getAttEnum(Obj.RADSTA, Att.CATRAS); 209 if (cat == CatRAS.RAS_COST) { 210 Renderer.labelText("Ra", new Font("Arial", Font.PLAIN, 40), Symbols.Msymb, new Delta(Handle.TR, AffineTransform.getTranslateInstance(-60, -70))); 211 } 212 } 213 } 214 215 public static void radarTransponders() { 216 if (Renderer.zoom >= 11) 217 Renderer.symbol(Beacons.RadarStation); 218 if (Renderer.zoom >= 15) { 219 String bstr = ""; 220 CatRTB cat = (CatRTB) getAttEnum(Obj.RTPBCN, Att.CATRTB); 221 String wal = getAttStr(Obj.RTPBCN, Att.RADWAL); 210 222 if ((cat == CatRTB.RTB_RAMK) || (cat == CatRTB.RTB_RACN)) { 211 223 switch (cat) { … … 233 245 } 234 246 } 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 247 if (!wal.isEmpty()) { 248 switch (wal) { 249 case "0.03-X": 250 bstr += "(3cm)"; 251 break; 252 case "0.10-S": 253 bstr += "(10cm)"; 254 break; 255 } 256 } 257 if (!bstr.isEmpty()) { 258 Renderer.labelText(bstr, new Font("Arial", Font.PLAIN, 40), Symbols.Msymb, new Delta(Handle.TR, AffineTransform.getTranslateInstance(-30, -70))); 259 } 260 } 261 } 250 262 251 263 @SuppressWarnings("unchecked")
Note:
See TracChangeset
for help on using the changeset viewer.