comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartThemePanel.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 9705e747e3ee
children 05405292a7ca
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
39 import org.dive4elements.river.client.shared.model.ThemeList; 39 import org.dive4elements.river.client.shared.model.ThemeList;
40 40
41 41
42 /** 42 /**
43 * ThemePanel on the left in CollectionView. 43 * ThemePanel on the left in CollectionView.
44 * Contains control widgets for "themes", which are plotted in a diagram (chart). 44 * Contains control widgets for "themes", which are plotted
45 * in a diagram (chart).
45 * 46 *
46 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 47 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
47 */ 48 */
48 public class ChartThemePanel extends ThemePanel { 49 public class ChartThemePanel extends ThemePanel {
49 /** Artifact Clone/Creation service. */ 50 /** Artifact Clone/Creation service. */
382 383
383 ThemeList themes = getThemeList(); 384 ThemeList themes = getThemeList();
384 int nThemes = themes.getThemeCount(); 385 int nThemes = themes.getThemeCount();
385 386
386 // Create the "under..." submenu. 387 // Create the "under..." submenu.
387 MenuItem underMenuItem = new MenuItem(MSG.chart_themepanel_area_under()); 388 MenuItem underMenuItem = new MenuItem(
389 MSG.chart_themepanel_area_under());
388 Menu underMenu = new Menu(); 390 Menu underMenu = new Menu();
389 for (int i = 0; i < nThemes; i++) { 391 for (int i = 0; i < nThemes; i++) {
390 final Theme theme = themes.getThemeAt(i+1); 392 final Theme theme = themes.getThemeAt(i+1);
391 393
392 if (theme.getVisible() == 0) { 394 if (theme.getVisible() == 0) {
441 } 443 }
442 }); 444 });
443 overMenu.addItem(againstAxis); 445 overMenu.addItem(againstAxis);
444 446
445 // Create the "between..." submenu. 447 // Create the "between..." submenu.
446 MenuItem betweenMenuItem = new MenuItem(MSG.chart_themepanel_area_between()); 448 MenuItem betweenMenuItem = new MenuItem(
449 MSG.chart_themepanel_area_between());
447 Menu betweenMenu = new Menu(); 450 Menu betweenMenu = new Menu();
448 for (int i = 0; i < nThemes; i++) { 451 for (int i = 0; i < nThemes; i++) {
449 final Theme theme = themes.getThemeAt(i+1); 452 final Theme theme = themes.getThemeAt(i+1);
450 if (theme.getVisible() == 0) { 453 if (theme.getVisible() == 0) {
451 continue; 454 continue;
473 476
474 areaMenu.addItem(betweenMenuItem); 477 areaMenu.addItem(betweenMenuItem);
475 areaMenu.addItem(overMenuItem); 478 areaMenu.addItem(overMenuItem);
476 areaMenu.addItem(underMenuItem); 479 areaMenu.addItem(underMenuItem);
477 areaMenu.addItem(createSeparator()); 480 areaMenu.addItem(createSeparator());
478 MenuItem standAloneAgainstAxis = new MenuItem(MSG.getString("against_x_axis")); 481 MenuItem standAloneAgainstAxis = new MenuItem(
482 MSG.getString("against_x_axis"));
479 standAloneAgainstAxis.addClickHandler(new ClickHandler() { 483 standAloneAgainstAxis.addClickHandler(new ClickHandler() {
480 @Override 484 @Override
481 public void onClick(MenuItemClickEvent evt) { 485 public void onClick(MenuItemClickEvent evt) {
482 disable(); 486 disable();
483 createAreaArtifact(null, facetTheme, false); 487 createAreaArtifact(null, facetTheme, false);

http://dive4elements.wald.intevation.org