comparison artifacts/src/main/java/org/dive4elements/river/exports/process/AreaProcessor.java @ 7713:dfe3f78fd3e5

(issue1622) Paint W Differences on diffW Axis
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 19 Dec 2013 18:36:00 +0100
parents 9344aa0fb021
children 0ee6aa11649b
comparison
equal deleted inserted replaced
7712:27578853bf24 7713:dfe3f78fd3e5
130 axisNameForFacet(data.getRootFacetName()), visible); 130 axisNameForFacet(data.getRootFacetName()), visible);
131 } 131 }
132 132
133 /** Look up the axis identifier for a given facet type. */ 133 /** Look up the axis identifier for a given facet type. */
134 private String axisNameForFacet(String facetName) { 134 private String axisNameForFacet(String facetName) {
135 if (FacetTypes.W_DIFFERENCES.equals(facetName)) {
136 return "diffW";
137 }
135 if (FacetTypes.IS.W(facetName)) { 138 if (FacetTypes.IS.W(facetName)) {
136 return "W"; 139 return "W";
137 } 140 }
138 else if (FacetTypes.IS.Q(facetName)) { 141 if (FacetTypes.IS.Q(facetName)) {
139 return "Q"; 142 return "Q";
140 } 143 }
141 else { 144 logger.warn("Could not find axis for facet " + facetName);
142 logger.warn("Could not find axis for facet " + facetName); 145 return "W";
143 return "W";
144 }
145 } 146 }
146 147
147 @Override 148 @Override
148 public boolean canHandle(String facetType) { 149 public boolean canHandle(String facetType) {
149 if (facetType == null) { 150 if (facetType == null) {

http://dive4elements.wald.intevation.org