Changeset 30215 in osm for applications/editors/josm/plugins/smed2/src/render/Rules.java
- Timestamp:
- 2014-01-19T14:52:39+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/render/Rules.java
r30157 r30215 32 32 33 33 static String getName(Feature feature) { 34 Att Itemname = feature.atts.get(Att.OBJNAM);34 AttVal<?> name = feature.atts.get(Att.OBJNAM); 35 35 if (name == null) { 36 36 AttMap atts = feature.objs.get(feature.type).get(0); … … 58 58 return S57val.nullVal(att); 59 59 else { 60 Att Itemitem = atts.get(att);60 AttVal<?> item = atts.get(att); 61 61 if (item == null) 62 62 return S57val.nullVal(att); … … 89 89 AttMap atts = getAtts(feature, obj, 0); 90 90 if (atts != null) { 91 Att Itemitem = atts.get(att);91 AttVal item = atts.get(att); 92 92 if (item != null) { 93 93 switch (item.conv) { … … 233 233 case SEA_RECH: 234 234 if ((Renderer.zoom >= 10) && (name != null)) 235 if (feature. flag == Fflag.LINE) {235 if (feature.geom.prim == Pflag.LINE) { 236 236 Renderer.lineText(feature, name, new Font("Arial", Font.PLAIN, 150), Color.black, 0.5, -40); 237 237 } else { … … 241 241 case SEA_BAY: 242 242 if ((Renderer.zoom >= 12) && (name != null)) 243 if (feature. flag == Fflag.LINE) {243 if (feature.geom.prim == Pflag.LINE) { 244 244 Renderer.lineText(feature, name, new Font("Arial", Font.PLAIN, 150), Color.black, 0.5, -40); 245 245 } else { … … 249 249 case SEA_SHOL: 250 250 if (Renderer.zoom >= 14) { 251 if (feature. flag == Fflag.AREA) {251 if (feature.geom.prim == Pflag.AREA) { 252 252 Renderer.lineVector(feature, new LineStyle(new Color(0xc480ff), 4, new float[] { 25, 25 })); 253 253 if (name != null) { … … 255 255 Renderer.labelText(feature, "(Shoal)", new Font("Arial", Font.PLAIN, 60), Color.black, new Delta(Handle.BC)); 256 256 } 257 } else if (feature. flag == Fflag.LINE) {257 } else if (feature.geom.prim == Pflag.LINE) { 258 258 if (name != null) { 259 259 Renderer.lineText(feature, name, new Font("Arial", Font.ITALIC, 75), Color.black, 0.5, -40); … … 489 489 case ACHARE: 490 490 if (Renderer.zoom >= 12) { 491 if (feature. flag != Fflag.AREA) {491 if (feature.geom.prim != Pflag.AREA) { 492 492 Renderer.symbol(feature, Harbours.Anchorage, new Scheme(Color.black)); 493 493 } else { … … 683 683 MarSYS sys = MarSYS.SYS_CEVN; 684 684 BnkWTW bnk = BnkWTW.BWW_UNKN; 685 Att Itematt = feature.atts.get(Att.MARSYS);685 AttVal att = feature.atts.get(Att.MARSYS); 686 686 if (att != null) sys = (MarSYS)att.val; 687 687 ObjTab objs = feature.objs.get(Obj.NOTMRK);
Note:
See TracChangeset
for help on using the changeset viewer.
