comparison flys-artifacts/src/main/java/de/intevation/flys/exports/minfo/SedimentLoadLSGenerator.java @ 4826:a3dc382bc1ca

BedHeightAccess, FlowVelocityAccess, SedimentLoadAccess: Inherit from RangeAccess. Update callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 Jan 2013 17:26:08 +0100
parents ef93ef4ff6b1
children ca4b6263996c
comparison
equal deleted inserted replaced
4825:f8217f1fef2e 4826:a3dc382bc1ca
164 164
165 @Override 165 @Override
166 protected String getDefaultYAxisLabel(int pos) { 166 protected String getDefaultYAxisLabel(int pos) {
167 String label = "default"; 167 String label = "default";
168 if (pos == YAXIS.L.idx) { 168 if (pos == YAXIS.L.idx) {
169 SedimentLoadAccess access = new SedimentLoadAccess(artifact); 169 SedimentLoadAccess access = new SedimentLoadAccess(artifact, context);
170 if (access.getUnit().equals("m3_per_a")) { 170 if (access.getUnit().equals("m3_per_a")) {
171 label = msg(I18N_YAXIS_LABEL_2, I18N_YAXIS_LABEL_DEFAULT_2); 171 label = msg(I18N_YAXIS_LABEL_2, I18N_YAXIS_LABEL_DEFAULT_2);
172 } 172 }
173 else { 173 else {
174 label = msg(I18N_YAXIS_LABEL_1, I18N_YAXIS_LABEL_DEFAULT_1); 174 label = msg(I18N_YAXIS_LABEL_1, I18N_YAXIS_LABEL_DEFAULT_1);

http://dive4elements.wald.intevation.org