Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/sq/SQRelationGenerator.java @ 3120:e52a3b62fc20
Fixed broken naming of curves in SQ relation charts.
flys-artifacts/trunk@4721 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 20 Jun 2012 11:24:30 +0000 |
parents | 238803b2cb8b |
children | 8af1111af180 |
comparison
equal
deleted
inserted
replaced
3119:238803b2cb8b | 3120:e52a3b62fc20 |
---|---|
129 protected void doSQCurveOut( | 129 protected void doSQCurveOut( |
130 ArtifactAndFacet artifactAndFacet, | 130 ArtifactAndFacet artifactAndFacet, |
131 Document attr, | 131 Document attr, |
132 boolean visible | 132 boolean visible |
133 ) { | 133 ) { |
134 logger.debug("doSQCurveOut"); | 134 String desc = artifactAndFacet.getFacetDescription(); |
135 logger.debug("doSQCurveOut: " + desc); | |
135 | 136 |
136 Facet f = artifactAndFacet.getFacet(); | 137 Facet f = artifactAndFacet.getFacet(); |
137 SQFunction func = (SQFunction) artifactAndFacet.getData(context); | 138 SQFunction func = (SQFunction) artifactAndFacet.getData(context); |
138 | 139 |
139 XYSeries series = JFreeUtil.sampleFunction2D( | 140 XYSeries series = JFreeUtil.sampleFunction2D( |
140 func.getFunction(), | 141 func.getFunction(), |
141 attr, | 142 attr, |
142 f.getDescription(), | 143 desc, |
143 10, | 144 10, |
144 func.getMinQ(), | 145 func.getMinQ(), |
145 func.getMaxQ()); | 146 func.getMaxQ()); |
146 | 147 |
147 if (logger.isDebugEnabled()) { | 148 if (logger.isDebugEnabled()) { |
148 logger.debug("Series '" + f.getDescription() + "' has " | 149 logger.debug("Series '" + desc + "' has " |
149 + series.getItemCount() + " items."); | 150 + series.getItemCount() + " items."); |
150 | 151 |
151 logger.debug(" -> min x = " + series.getMinX()); | 152 logger.debug(" -> min x = " + series.getMinX()); |
152 logger.debug(" -> max x = " + series.getMaxX()); | 153 logger.debug(" -> max x = " + series.getMaxX()); |
153 logger.debug(" -> min y = " + series.getMinY()); | 154 logger.debug(" -> min y = " + series.getMinY()); |
161 protected void doSQOut( | 162 protected void doSQOut( |
162 ArtifactAndFacet artifactAndFacet, | 163 ArtifactAndFacet artifactAndFacet, |
163 Document attr, | 164 Document attr, |
164 boolean visible | 165 boolean visible |
165 ) { | 166 ) { |
166 logger.debug("doSQOut: " + artifactAndFacet.getFacetDescription()); | 167 String desc = artifactAndFacet.getFacetDescription(); |
168 logger.debug("doSQOut: " + desc); | |
167 | 169 |
168 Facet f = artifactAndFacet.getFacet(); | 170 Facet f = artifactAndFacet.getFacet(); |
169 SQ[] sqs = (SQ[]) artifactAndFacet.getData(context); | 171 SQ[] sqs = (SQ[]) artifactAndFacet.getData(context); |
170 XYSeries series = new StyledXYSeries(f.getDescription(), attr); | 172 XYSeries series = new StyledXYSeries(desc, attr); |
171 | 173 |
172 for (SQ sq: sqs) { | 174 for (SQ sq: sqs) { |
173 series.add(sq.getQ(), sq.getS()); | 175 series.add(sq.getQ(), sq.getS()); |
174 } | 176 } |
175 | 177 |
176 if (logger.isDebugEnabled()) { | 178 if (logger.isDebugEnabled()) { |
177 logger.debug("Series '" + f.getDescription() + "' has " | 179 logger.debug("Series '" + desc + "' has " |
178 + series.getItemCount() + " items."); | 180 + series.getItemCount() + " items."); |
179 | 181 |
180 logger.debug(" -> min x = " + series.getMinX()); | 182 logger.debug(" -> min x = " + series.getMinX()); |
181 logger.debug(" -> max x = " + series.getMaxX()); | 183 logger.debug(" -> max x = " + series.getMaxX()); |
182 logger.debug(" -> min y = " + series.getMinY()); | 184 logger.debug(" -> min y = " + series.getMinY()); |