Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/DrawControl.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | ea9eef426962 |
children |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
36 import org.gwtopenmaps.openlayers.client.handler.PolygonHandler; | 36 import org.gwtopenmaps.openlayers.client.handler.PolygonHandler; |
37 import org.gwtopenmaps.openlayers.client.layer.Vector; | 37 import org.gwtopenmaps.openlayers.client.layer.Vector; |
38 import org.gwtopenmaps.openlayers.client.util.Attributes; | 38 import org.gwtopenmaps.openlayers.client.util.Attributes; |
39 | 39 |
40 /** | 40 /** |
41 * Widget that handles the drawing of pipes and dikes in the DigitizePanel (MapPanel). | 41 * Widget that handles the drawing of pipes and dikes |
42 * in the DigitizePanel (MapPanel). | |
42 */ | 43 */ |
43 public class DrawControl extends HLayout implements VectorFeatureAddedListener { | 44 public class DrawControl |
45 extends HLayout implements VectorFeatureAddedListener { | |
44 | 46 |
45 public static final String BARRIER_PIPE1 = "pipe1"; | 47 public static final String BARRIER_PIPE1 = "pipe1"; |
46 public static final String BARRIER_PIPE2 = "pipe2"; | 48 public static final String BARRIER_PIPE2 = "pipe2"; |
47 public static final String BARRIER_DITCH = "ditch"; | 49 public static final String BARRIER_DITCH = "ditch"; |
48 public static final String BARRIER_DAM = "dam"; | 50 public static final String BARRIER_DAM = "dam"; |
109 form = new DynamicForm(); | 111 form = new DynamicForm(); |
110 form.setWidth(100); | 112 form.setWidth(100); |
111 form.setTitlePrefix(""); | 113 form.setTitlePrefix(""); |
112 form.setTitleSuffix(""); | 114 form.setTitleSuffix(""); |
113 | 115 |
114 final LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); | 116 final LinkedHashMap<String, String> map = |
117 new LinkedHashMap<String, String>(); | |
115 map.put(BARRIER_PIPE1, MSG.getString(BARRIER_PIPE1)); | 118 map.put(BARRIER_PIPE1, MSG.getString(BARRIER_PIPE1)); |
116 map.put(BARRIER_PIPE2, MSG.getString(BARRIER_PIPE2)); | 119 map.put(BARRIER_PIPE2, MSG.getString(BARRIER_PIPE2)); |
117 map.put(BARRIER_DITCH, MSG.getString(BARRIER_DITCH)); | 120 map.put(BARRIER_DITCH, MSG.getString(BARRIER_DITCH)); |
118 map.put(BARRIER_DAM, MSG.getString(BARRIER_DAM)); | 121 map.put(BARRIER_DAM, MSG.getString(BARRIER_DAM)); |
119 map.put(BARRIER_RINGDIKE, MSG.getString(BARRIER_RINGDIKE)); | 122 map.put(BARRIER_RINGDIKE, MSG.getString(BARRIER_RINGDIKE)); |
120 | 123 |
121 final LinkedHashMap<String, String> ics = new LinkedHashMap<String, String>(); | 124 final LinkedHashMap<String, String> ics = |
125 new LinkedHashMap<String, String>(); | |
122 ics.put(BARRIER_PIPE1, BARRIER_PIPE1); | 126 ics.put(BARRIER_PIPE1, BARRIER_PIPE1); |
123 ics.put(BARRIER_PIPE2, BARRIER_PIPE2); | 127 ics.put(BARRIER_PIPE2, BARRIER_PIPE2); |
124 ics.put(BARRIER_DITCH, BARRIER_DITCH); | 128 ics.put(BARRIER_DITCH, BARRIER_DITCH); |
125 ics.put(BARRIER_DAM, BARRIER_DAM); | 129 ics.put(BARRIER_DAM, BARRIER_DAM); |
126 ics.put(BARRIER_RINGDIKE, BARRIER_RINGDIKE); | 130 ics.put(BARRIER_RINGDIKE, BARRIER_RINGDIKE); |
219 } | 223 } |
220 | 224 |
221 map.addControl(control); | 225 map.addControl(control); |
222 control.activate(); | 226 control.activate(); |
223 | 227 |
224 // Make sure the barrier layer is on top; sometime it looses it z-index... | 228 // Make sure the barrier layer is on top; |
229 // sometime it looses it z-index... | |
225 layer.setZIndex(1000); | 230 layer.setZIndex(1000); |
226 } | 231 } |
227 | 232 |
228 | 233 |
229 protected Control createDrawControl(Handler handler) { | 234 protected Control createDrawControl(Handler handler) { |