Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartThemePanel.java @ 7681:4e76bfff5fa6
issue1574: Also allow area creation for longitudinal_discharge_sections.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 10 Dec 2013 11:22:06 +0100 |
parents | 8fe646d9d4ee |
children | 27578853bf24 |
comparison
equal
deleted
inserted
replaced
7680:8fe646d9d4ee | 7681:4e76bfff5fa6 |
---|---|
288 return false; | 288 return false; |
289 } | 289 } |
290 if (a.getFacet().equals("longitudinal_section.w") || | 290 if (a.getFacet().equals("longitudinal_section.w") || |
291 a.getFacet().equals("other.wqkms.w") || | 291 a.getFacet().equals("other.wqkms.w") || |
292 a.getFacet().equals("other.wqkms") || | 292 a.getFacet().equals("other.wqkms") || |
293 a.getFacet().equals("discharge_longitudinal_section.w") || | |
293 a.getFacet().equals("other.wkms")) { | 294 a.getFacet().equals("other.wkms")) { |
294 return b.getFacet().equals("longitudinal_section.w") | 295 return b.getFacet().equals("longitudinal_section.w") |
295 || b.getFacet().equals("other.wqkms") | 296 || b.getFacet().equals("other.wqkms") |
296 || b.getFacet().equals("other.wqkms.w") | 297 || b.getFacet().equals("other.wqkms.w") |
298 || b.getFacet().equals("discharge_longitudinal_section.w") | |
297 || b.getFacet().equals("other.wkms"); | 299 || b.getFacet().equals("other.wkms"); |
298 } | 300 } |
299 else if (a.getFacet().equals("longitudinal_section.q") || | 301 else if (a.getFacet().equals("longitudinal_section.q") || |
302 a.getFacet().equals("discharge_longitudinal_section.q") || | |
300 a.getFacet().equals("other.wqkms.q")) { | 303 a.getFacet().equals("other.wqkms.q")) { |
301 return b.getFacet().equals("longitudinal_section.q") | 304 return b.getFacet().equals("longitudinal_section.q") |
305 || b.getFacet().equals("discharge_longitudinal_section.q") | |
302 || b.getFacet().equals("other.wqkms.q"); | 306 || b.getFacet().equals("other.wqkms.q"); |
303 } | 307 } |
304 return false; | 308 return false; |
305 } | 309 } |
306 | 310 |
310 * this theme. | 314 * this theme. |
311 */ | 315 */ |
312 protected boolean canArea(Theme a) { | 316 protected boolean canArea(Theme a) { |
313 return a.getFacet().equals("longitudinal_section.q") | 317 return a.getFacet().equals("longitudinal_section.q") |
314 || a.getFacet().equals("longitudinal_section.w") | 318 || a.getFacet().equals("longitudinal_section.w") |
319 || a.getFacet().equals("discharge_longitudinal_section.w") | |
320 || a.getFacet().equals("discharge_longitudinal_section.q") | |
315 || a.getFacet().startsWith("other.wqkms") | 321 || a.getFacet().startsWith("other.wqkms") |
316 || a.getFacet().equals("other.wkms"); | 322 || a.getFacet().equals("other.wkms"); |
317 } | 323 } |
318 | 324 |
319 | 325 |