Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java @ 2930:e8eca6eeeec0
Show area menu also for newer manual wsp line facet.
flys-client/trunk@4833 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 28 Jun 2012 18:09:44 +0000 |
parents | 51ed89b754ae |
children | a5ebe2e2c772 |
comparison
equal
deleted
inserted
replaced
2929:0ef4753e5515 | 2930:e8eca6eeeec0 |
---|---|
762 protected boolean areAreaCompatible(Theme a, Theme b) { | 762 protected boolean areAreaCompatible(Theme a, Theme b) { |
763 if (a.equals(b)) { | 763 if (a.equals(b)) { |
764 return false; | 764 return false; |
765 } | 765 } |
766 return (a.getFacet().equals("cross_section") | 766 return (a.getFacet().equals("cross_section") |
767 || a.getFacet().equals("cross_section_water_line")) | 767 || a.getFacet().endsWith("line")) |
768 && (b.getFacet().equals("cross_section") | 768 && (b.getFacet().equals("cross_section") |
769 || b.getFacet().equals("cross_section_water_line")); | 769 || b.getFacet().endsWith("line")); |
770 } | 770 } |
771 | 771 |
772 | 772 |
773 /** | 773 /** |
774 * True if context menu should contain 'create area' submenu on | 774 * True if context menu should contain 'create area' submenu on |
775 * this theme. | 775 * this theme. |
776 */ | 776 */ |
777 protected boolean canArea(Theme a) { | 777 protected boolean canArea(Theme a) { |
778 return a.getFacet().equals("cross_section") | 778 return a.getFacet().equals("cross_section") |
779 || a.getFacet().equals("cross_section_water_line"); | 779 || a.getFacet().equals("cross_section_water_line") |
780 || a.getFacet().endsWith("line"); | |
780 } | 781 } |
781 | 782 |
782 | 783 |
783 protected String themeHash(Theme theme) { | 784 protected String themeHash(Theme theme) { |
784 return theme.getArtifact() + theme.getFacet() + theme.getIndex(); | 785 return theme.getArtifact() + theme.getFacet() + theme.getIndex(); |