comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityInterpolFacet.java @ 8655:4b00ee858964

(issue1755) Fix Y Axis label in Bed Quality facets. It's used in the CSV Export.
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 02 Apr 2015 14:09:27 +0200
parents 36faef4f8acb
children 5e38e2924c07
comparison
equal deleted inserted replaced
8654:bf8590046120 8655:4b00ee858964
40 ComputeType type, String stateId, String hash, String valueName, String valueType) { 40 ComputeType type, String stateId, String hash, String valueName, String valueType) {
41 super(idx, name, description, type, hash, stateId); 41 super(idx, name, description, type, hash, stateId);
42 this.valueName = valueName; 42 this.valueName = valueName;
43 this.valueType = valueType; 43 this.valueType = valueType;
44 this.metaData.put("X", "chart.longitudinal.section.xaxis.label"); 44 this.metaData.put("X", "chart.longitudinal.section.xaxis.label");
45 this.metaData.put("Y", ""); /* check if those <^ be removed? */ 45 if (!valueName.equals("porosity") && !valueName.equals("density")) {
46 this.metaData.put("Y", "chart.bedquality.yaxis.label.diameter");
47 } else {
48 this.metaData.put("Y", "chart.bedquality.yaxis.label." + valueName);
49 }
46 } 50 }
47 51
48 @Override 52 @Override
49 public Object getData(Artifact artifact, CallContext context) { 53 public Object getData(Artifact artifact, CallContext context) {
50 log.debug("Get bedquality data: " + valueName + " - " + valueType); 54 log.debug("Get bedquality data: " + valueName + " - " + valueType);

http://dive4elements.wald.intevation.org