Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadLSGenerator.java @ 6101:a0078e5e3b39
Removed unused context from RangeAccess and subclasses leading to some dead code removal.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 25 May 2013 19:32:58 +0200 |
parents | af13ceeba52a |
children | 7e3cd23f8671 |
comparison
equal
deleted
inserted
replaced
6100:de92e0cdebdc | 6101:a0078e5e3b39 |
---|---|
117 context.putContextValue("startkm", getXBounds(0).getLower()); | 117 context.putContextValue("startkm", getXBounds(0).getLower()); |
118 context.putContextValue("endkm", getXBounds(0).getUpper()); | 118 context.putContextValue("endkm", getXBounds(0).getUpper()); |
119 } | 119 } |
120 else if (getXBounds(0) == null && getDomainAxisRange() == null) { | 120 else if (getXBounds(0) == null && getDomainAxisRange() == null) { |
121 D4EArtifact artifact = (D4EArtifact)bundle.getArtifact(); | 121 D4EArtifact artifact = (D4EArtifact)bundle.getArtifact(); |
122 RangeAccess access = new RangeAccess(artifact, context); | 122 RangeAccess access = new RangeAccess(artifact); |
123 context.putContextValue("startkm", access.getFrom()); | 123 context.putContextValue("startkm", access.getFrom()); |
124 context.putContextValue("endkm", access.getTo()); | 124 context.putContextValue("endkm", access.getTo()); |
125 } | 125 } |
126 else if (getXBounds(0) == null && getDomainAxisRange() != null){ | 126 else if (getXBounds(0) == null && getDomainAxisRange() != null){ |
127 D4EArtifact artifact = (D4EArtifact)bundle.getArtifact(); | 127 D4EArtifact artifact = (D4EArtifact)bundle.getArtifact(); |
128 RangeAccess access = new RangeAccess(artifact, context); | 128 RangeAccess access = new RangeAccess(artifact); |
129 Bounds b = new DoubleBounds(access.getFrom(), access.getTo()); | 129 Bounds b = new DoubleBounds(access.getFrom(), access.getTo()); |
130 Bounds bounds = | 130 Bounds bounds = |
131 calculateZoom(b, getDomainAxisRange()); | 131 calculateZoom(b, getDomainAxisRange()); |
132 context.putContextValue("startkm", bounds.getLower()); | 132 context.putContextValue("startkm", bounds.getLower()); |
133 context.putContextValue("endkm", bounds.getUpper()); | 133 context.putContextValue("endkm", bounds.getUpper()); |
224 | 224 |
225 @Override | 225 @Override |
226 protected String getDefaultYAxisLabel(int pos) { | 226 protected String getDefaultYAxisLabel(int pos) { |
227 String label = "default"; | 227 String label = "default"; |
228 if (pos == YAXIS.L.idx) { | 228 if (pos == YAXIS.L.idx) { |
229 SedimentLoadAccess access = new SedimentLoadAccess(artifact, context); | 229 SedimentLoadAccess access = new SedimentLoadAccess(artifact); |
230 if (access.getUnit().equals("m3_per_a")) { | 230 if (access.getUnit().equals("m3_per_a")) { |
231 label = msg(I18N_YAXIS_LABEL_2, I18N_YAXIS_LABEL_DEFAULT_2); | 231 label = msg(I18N_YAXIS_LABEL_2, I18N_YAXIS_LABEL_DEFAULT_2); |
232 } | 232 } |
233 else { | 233 else { |
234 label = msg(I18N_YAXIS_LABEL_1, I18N_YAXIS_LABEL_DEFAULT_1); | 234 label = msg(I18N_YAXIS_LABEL_1, I18N_YAXIS_LABEL_DEFAULT_1); |