comparison flys-artifacts/src/main/java/de/intevation/flys/exports/NormalizedReferenceCurveGenerator.java @ 2278:08bb95e1fc41

"Bezugslinienverfahren": Fetch axis types from call context. flys-artifacts/trunk@3937 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 06 Feb 2012 15:57:31 +0000
parents 3f3e4f94171b
children 094b4abde10e
comparison
equal deleted inserted replaced
2277:3f3e4f94171b 2278:08bb95e1fc41
198 Document theme, 198 Document theme,
199 boolean visible 199 boolean visible
200 ) { 200 ) {
201 WW ww = (WW)data; 201 WW ww = (WW)data;
202 202
203 // TODO: Fetch from black board instead! 203 Object obj = context.getContextValue("reference.curve.axis.scale");
204 WWAxisTypes wwat = new WWAxisTypes(ww); 204
205 205 WWAxisTypes wwat = obj instanceof WWAxisTypes
206 ApplyFunctionIterator iter = wwat.transform(ww); 206 ? (WWAxisTypes)obj
207 : new WWAxisTypes(ww);
208
209 ApplyFunctionIterator iter = wwat.transform(ww, true);
207 210
208 XYSeries series = new StyledXYSeries( 211 XYSeries series = new StyledXYSeries(
209 ww.getName(), false, theme); 212 ww.getName(), false, theme);
210 213
211 double [] values = new double[2]; 214 double [] values = new double[2];

http://dive4elements.wald.intevation.org