Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixDeltaWtGenerator.java @ 9354:13bbc75ed0bc
Change theme legend label if interpolated
author | gernotbelger |
---|---|
date | Tue, 31 Jul 2018 18:12:19 +0200 |
parents | 094ed9d1f2ad |
children | ddcd52d239cd |
comparison
equal
deleted
inserted
replaced
9353:217e8e59c386 | 9354:13bbc75ed0bc |
---|---|
324 log.debug("doQWDEventsOut: qwd == null"); | 324 log.debug("doQWDEventsOut: qwd == null"); |
325 return; | 325 return; |
326 } | 326 } |
327 | 327 |
328 final ThemeDocument themeInterpolated = FixWQCurveGenerator.configureThemeInterpolated(theme, qwd); | 328 final ThemeDocument themeInterpolated = FixWQCurveGenerator.configureThemeInterpolated(theme, qwd); |
329 final String label = FixWQCurveGenerator.buildQWDSeriesLabel(qwd, desc); | |
329 | 330 |
330 final Map<Integer, int[]> annoIdxMap = new HashMap<>(); | 331 final Map<Integer, int[]> annoIdxMap = new HashMap<>(); |
331 | 332 |
332 final long time = uniqueDate(qwd.getDate().getTime()); | 333 final long time = uniqueDate(qwd.getDate().getTime()); |
333 final RegularTimePeriod rtp = new FixedMillisecond(time); | 334 final RegularTimePeriod rtp = new FixedMillisecond(time); |
334 final double value = qwd.getDeltaW(); | 335 final double value = qwd.getDeltaW(); |
335 | 336 |
336 final TimeSeries series = new StyledTimeSeries(desc, themeInterpolated); | 337 final TimeSeries series = new StyledTimeSeries(label, themeInterpolated); |
337 series.addOrUpdate(rtp, value); | 338 series.addOrUpdate(rtp, value); |
338 | 339 |
339 tsc.addSeries(series); | 340 tsc.addSeries(series); |
340 | 341 |
341 addAxisDataset(tsc, 0, visible); | 342 addAxisDataset(tsc, 0, visible); |