comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.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 07c9ac22f611
children 5e38e2924c07
comparison
equal deleted inserted replaced
8654:bf8590046120 8655:4b00ee858964
39 ComputeType type, String stateId, String hash, String valueName, String valueType) { 39 ComputeType type, String stateId, String hash, String valueName, String valueType) {
40 super(idx, name, description, type, hash, stateId); 40 super(idx, name, description, type, hash, stateId);
41 this.valueName = valueName; 41 this.valueName = valueName;
42 this.valueType = valueType; 42 this.valueType = valueType;
43 this.metaData.put("X", "chart.longitudinal.section.xaxis.label"); 43 this.metaData.put("X", "chart.longitudinal.section.xaxis.label");
44 this.metaData.put("Y", ""); /* check if those <^ be removed? */ 44 if (!valueName.equals("porosity") && !valueName.equals("density")) {
45 this.metaData.put("Y", "chart.bedquality.yaxis.label.diameter");
46 } else {
47 this.metaData.put("Y", "chart.bedquality.yaxis.label." + valueName);
48 }
45 } 49 }
46 50
47 @Override 51 @Override
48 public Object getData(Artifact artifact, CallContext context) { 52 public Object getData(Artifact artifact, CallContext context) {
49 log.debug("Get bedquality data: " + valueName + " - " + valueType); 53 log.debug("Get bedquality data: " + valueName + " - " + valueType);

http://dive4elements.wald.intevation.org