annotate artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java @ 9555:ef5754ba5573

Implemented legend aggregation based on type of themes. Added theme-editor style configuration for aggregated legend entries. Only configured themes get aggregated.
author gernotbelger
date Tue, 23 Oct 2018 16:26:48 +0200
parents 1cc7653ca84f
children
rev   line source
8165
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2014 by Bundesanstalt für Gewässerkunde
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
3 *
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
6 * documentation coming with Dive4Elements River for details.
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
7 */
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
8 package org.dive4elements.river.exports;
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
9
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
10 import java.awt.Font;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
11
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
12 import org.apache.log4j.Logger;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
13 import org.dive4elements.river.exports.injector.InjectorConstants;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
14 import org.dive4elements.river.jfree.AxisDataset;
8338
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
15 import org.dive4elements.river.jfree.DoubleBounds;
8738
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
16
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
17 import org.jfree.chart.axis.NumberAxis;
8738
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
18 import org.jfree.chart.axis.ValueAxis;
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
19 import org.jfree.chart.plot.XYPlot;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
20 import org.jfree.data.Range;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
21
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
22 public class DischargeGenerator
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
23 extends DiagramGenerator
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
24 implements InjectorConstants
8165
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
25 {
8323
c44775cd79f2 Use right logger in DischargeGenerator.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8320
diff changeset
26 private static Logger log = Logger.getLogger(DischargeGenerator.class);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
27
8353
a82f24b773e7 Use i18n string for w in cm axis.
Raimund Renkert <rrenkert@intevation.de>
parents: 8338
diff changeset
28 private String I18N_AXIS_LABEL = "chart.discharge.curve.yaxis.cm.label";
a82f24b773e7 Use i18n string for w in cm axis.
Raimund Renkert <rrenkert@intevation.de>
parents: 8338
diff changeset
29
8571
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
30 private int wAxisIndex;
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
31 private int wInCmAxisIndex;
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
32 double pnpValue;
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
33
8165
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
34 public DischargeGenerator() {
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
35 }
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
36
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
37 @Override
9555
ef5754ba5573 Implemented legend aggregation based on type of themes.
gernotbelger
parents: 9123
diff changeset
38 public void addDatasets(XYPlot plot, final LegendAggregator legendBuilder) {
ef5754ba5573 Implemented legend aggregation based on type of themes.
gernotbelger
parents: 9123
diff changeset
39 super.addDatasets(plot, legendBuilder);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
40
9123
1cc7653ca84f Cleanup of ChartGenerator and ChartGenerator2 code. Put some of the copy/pasted code into a common abstraction.
gernotbelger
parents: 8738
diff changeset
41 Object pnp = getContext().getContextValue(PNP);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
42 if (!(pnp instanceof Number)) {
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
43 return;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
44 }
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
45
8571
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
46 pnpValue = ((Number)pnp).doubleValue();
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
47
8571
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
48 wAxisIndex = diagramAttributes.getAxisIndex("W");
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
49 if (wAxisIndex == -1) {
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
50 log.warn("No W axis found.");
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
51 return;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
52 }
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
53
9123
1cc7653ca84f Cleanup of ChartGenerator and ChartGenerator2 code. Put some of the copy/pasted code into a common abstraction.
gernotbelger
parents: 8738
diff changeset
54 AxisDataset data = getDatasets().get(wAxisIndex);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
55 if (data == null) {
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
56 // No W axis
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
57 return;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
58 }
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
59
8330
e87a993c6611 Avoid NPE if no dataset is activated in theme list.
"Tom Gottfried <tom@intevation.de>"
parents: 8324
diff changeset
60 if (data.getRange() == null) {
e87a993c6611 Avoid NPE if no dataset is activated in theme list.
"Tom Gottfried <tom@intevation.de>"
parents: 8324
diff changeset
61 // No active datasets
e87a993c6611 Avoid NPE if no dataset is activated in theme list.
"Tom Gottfried <tom@intevation.de>"
parents: 8324
diff changeset
62 return;
e87a993c6611 Avoid NPE if no dataset is activated in theme list.
"Tom Gottfried <tom@intevation.de>"
parents: 8324
diff changeset
63 }
e87a993c6611 Avoid NPE if no dataset is activated in theme list.
"Tom Gottfried <tom@intevation.de>"
parents: 8324
diff changeset
64
8338
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
65 Range axisRange = inCm(
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
66 plot.getRangeAxis(wAxisIndex).getRange(),
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
67 pnpValue
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
68 );
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
69 Range dataRange = inCm(data.getRange(), pnpValue);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
70
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
71 // Do we have an index for W in cm?
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
72 NumberAxis wInCmAxis = createWinCMAxis(wAxisIndex);
8338
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
73 wInCmAxis.setRange(axisRange);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
74
8571
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
75 wInCmAxisIndex = plot.getRangeAxisCount();
8338
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
76 plot.setRangeAxis(wInCmAxisIndex, wInCmAxis);
ac7cb15e1946 Scale second W-axis in cm according to first axis, which is expanded relative to the data, and set bounds for zooming purposes (plus a bit of cleanup in DiagramGenerator).
"Tom Gottfried <tom@intevation.de>"
parents: 8330
diff changeset
77 combineYBounds(new DoubleBounds(dataRange), wInCmAxisIndex);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
78 }
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
79
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
80 private static Range inCm(Range r, double pnpValue) {
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
81 double l = r.getLowerBound();
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
82 double u = r.getUpperBound();
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
83 l = (l - pnpValue)*100d;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
84 u = (u - pnpValue)*100d;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
85 return new Range(l, u);
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
86 }
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
87
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
88 private NumberAxis createWinCMAxis(int wAxisIndex) {
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
89
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
90 Font labelFont = new Font(
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
91 DEFAULT_FONT_NAME,
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
92 Font.BOLD,
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
93 getYAxisFontSize(wAxisIndex));
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
94
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
95 String axisName = "W.in.cm";
9123
1cc7653ca84f Cleanup of ChartGenerator and ChartGenerator2 code. Put some of the copy/pasted code into a common abstraction.
gernotbelger
parents: 8738
diff changeset
96 String axisLabel = msg( I18N_AXIS_LABEL, "W [cm]" );
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
97
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
98 IdentifiableNumberAxis axis = new IdentifiableNumberAxis(
8353
a82f24b773e7 Use i18n string for w in cm axis.
Raimund Renkert <rrenkert@intevation.de>
parents: 8338
diff changeset
99 axisName, axisLabel);
8320
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
100
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
101 axis.setAutoRangeIncludesZero(false);
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
102 axis.setLabelFont(labelFont);
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
103 axis.setTickLabelFont(labelFont);
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
104
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
105 return axis;
b1303070c050 Generate a W in CM axis if there are W data.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 8165
diff changeset
106 }
8571
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
107
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
108 /** We need to override this to keep both axis synced. */
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
109 @Override
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
110 protected void autoZoom(XYPlot plot) {
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
111 super.autoZoom(plot);
8738
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
112
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
113 ValueAxis wAxis = plot.getRangeAxis(wAxisIndex);
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
114 if (wAxis instanceof IdentifiableNumberAxis) {
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
115 IdentifiableNumberAxis idA = (IdentifiableNumberAxis)wAxis;
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
116 Range fixedRange = getRangeForAxisFromSettings(idA.getId());
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
117 if (fixedRange == null) {
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
118 return;
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
119 }
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
120
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
121 log.debug("Adjusting helper centimeter axis to fixed range.");
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
122 Range adjustedRange = inCm(
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
123 fixedRange,
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
124 pnpValue
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
125 );
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
126 IdentifiableNumberAxis wInCmAxis=
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
127 (IdentifiableNumberAxis) plot.getRangeAxis(wInCmAxisIndex);
e6d0fc817e20 (issue1798) Handle the case when there are no data in the diagram.
Tom Gottfried <tom@intevation.de>
parents: 8571
diff changeset
128 wInCmAxis.setRange(adjustedRange);
8571
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
129 }
bc803f4b6784 (issue1798) Adjust WinCM according to W in NHN axis on explicit zoom
Andre Heinecke <andre.heinecke@intevation.de>
parents: 8353
diff changeset
130 }
8165
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
131 }
cfb3a4d0c637 Added new diagramm generator for Q symmetry.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
132 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org