Changeset 30037 in osm for applications/editors/josm/plugins/smed2/src/seamap/Rules.java
- Timestamp:
- 2013-11-03T11:49:12+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Rules.java
r30036 r30037 80 80 if ((objects = map.features.get(Obj.LITMIN)) != null) for (Feature feature : objects) lights(feature); 81 81 if ((objects = map.features.get(Obj.LIGHTS)) != null) for (Feature feature : objects) lights(feature); 82 if ((objects = map.features.get(Obj.SISTAT)) != null) for (Feature feature : objects) s ignals(feature);83 if ((objects = map.features.get(Obj.SISTAW)) != null) for (Feature feature : objects) s ignals(feature);84 if ((objects = map.features.get(Obj.CGUSTA)) != null) for (Feature feature : objects) s ignals(feature);85 if ((objects = map.features.get(Obj.RDOSTA)) != null) for (Feature feature : objects) s ignals(feature);86 if ((objects = map.features.get(Obj.RADSTA)) != null) for (Feature feature : objects) s ignals(feature);87 if ((objects = map.features.get(Obj.RSCSTA)) != null) for (Feature feature : objects) s ignals(feature);88 if ((objects = map.features.get(Obj.PILBOP)) != null) for (Feature feature : objects) s ignals(feature);82 if ((objects = map.features.get(Obj.SISTAT)) != null) for (Feature feature : objects) stations(feature); 83 if ((objects = map.features.get(Obj.SISTAW)) != null) for (Feature feature : objects) stations(feature); 84 if ((objects = map.features.get(Obj.CGUSTA)) != null) for (Feature feature : objects) stations(feature); 85 if ((objects = map.features.get(Obj.RDOSTA)) != null) for (Feature feature : objects) stations(feature); 86 if ((objects = map.features.get(Obj.RADSTA)) != null) for (Feature feature : objects) stations(feature); 87 if ((objects = map.features.get(Obj.RSCSTA)) != null) for (Feature feature : objects) stations(feature); 88 if ((objects = map.features.get(Obj.PILBOP)) != null) for (Feature feature : objects) stations(feature); 89 89 if ((objects = map.features.get(Obj.WTWGAG)) != null) for (Feature feature : objects) gauges(feature); 90 90 if ((objects = map.features.get(Obj.OFSPLF)) != null) for (Feature feature : objects) platforms(feature); … … 114 114 Renderer.lineVector(feature, new LineStyle(Color.black, 8, new float[] { 25, 25 }, new Color(0x40ffffff, true))); 115 115 else 116 Renderer.lineVector(feature, new LineStyle(Color.black, 8, new float[] { 25, 25 } , null));116 Renderer.lineVector(feature, new LineStyle(Color.black, 8, new float[] { 25, 25 })); 117 117 if ((zoom >= 12) && (name != null)) 118 Renderer.labelText(feature, name, new Font("Arial", Font.PLAIN, 100), LabelStyle.NONE, Color.black , null, null);118 Renderer.labelText(feature, name, new Font("Arial", Font.PLAIN, 100), LabelStyle.NONE, Color.black); 119 119 break; 120 120 case FAIRWY: … … 123 123 Renderer.lineVector(feature, new LineStyle(Mline, 8, new float[] { 50, 50 }, new Color(0x40ffffff, true))); 124 124 else 125 Renderer.lineVector(feature, new LineStyle(Mline, 8, new float[] { 50, 50 } , null));125 Renderer.lineVector(feature, new LineStyle(Mline, 8, new float[] { 50, 50 })); 126 126 } else { 127 127 if (zoom >= 14) 128 Renderer.lineVector(feature, new LineStyle(new Color(0x40ffffff, true) , 0, null, null));128 Renderer.lineVector(feature, new LineStyle(null, 0, new Color(0x40ffffff, true))); 129 129 } 130 130 break; … … 133 133 Renderer.symbol(feature, Areas.MarineFarm); 134 134 if (zoom >= 16) 135 Renderer.lineVector(feature, new LineStyle( , null));135 Renderer.lineVector(feature, new LineStyle(Color.black, 4, new float[] { 10, 10 })); 136 136 break; 137 137 case OSPARE: 138 138 if (Util.testAttribute(feature, feature.type, Att.CATPRA, CatPRA.PRA_WFRM)) { 139 139 Renderer.symbol(feature, Areas.WindFarm); 140 Renderer.lineVector(feature, new LineStyle(Color.black, 20, new float[] { 40, 40 } , null));140 Renderer.lineVector(feature, new LineStyle(Color.black, 20, new float[] { 40, 40 })); 141 141 if ((zoom >= 15) && (name != null)) 142 Renderer.labelText(feature, name, new Font("Arial", Font.BOLD, 80), LabelStyle.NONE, Color.black, n ull, new Delta(Handle.TC, AffineTransform.getTranslateInstance(0, 10)));142 Renderer.labelText(feature, name, new Font("Arial", Font.BOLD, 80), LabelStyle.NONE, Color.black, new Delta(Handle.TC, AffineTransform.getTranslateInstance(0, 10))); 143 143 } 144 144 break; … … 210 210 } 211 211 if ((zoom >= 15) && (name != null)) 212 Renderer.labelText(feature, name, new Font("Arial", Font.BOLD, 80), LabelStyle.NONE, Color.black, n ull, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, -90)));212 Renderer.labelText(feature, name, new Font("Arial", Font.BOLD, 80), LabelStyle.NONE, Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, -90))); 213 213 break; 214 214 default: … … 856 856 } 857 857 858 private static void s ignals(Feature feature) {858 private static void stations(Feature feature) { 859 859 if (zoom >= 14) { 860 860 switch (feature.type) {
Note:
See TracChangeset
for help on using the changeset viewer.