Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 3076:5642a83420f2
FLYS artifacts: Removed trailing whitespace.
flys-artifacts/trunk@4670 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 15 Jun 2012 09:30:07 +0000 |
parents | 478e8d9d88ba |
children | 8ad8a227d983 |
comparison
equal
deleted
inserted
replaced
3075:db9e2bb34707 | 3076:5642a83420f2 |
---|---|
192 | 192 |
193 /** List of annotations to insert in plot. */ | 193 /** List of annotations to insert in plot. */ |
194 protected List<FLYSAnnotation> annotations; | 194 protected List<FLYSAnnotation> annotations; |
195 | 195 |
196 protected List<Marker> domainMarkers = new ArrayList<Marker>(); | 196 protected List<Marker> domainMarkers = new ArrayList<Marker>(); |
197 | 197 |
198 /** The max X range to include all X values of all series for each axis. */ | 198 /** The max X range to include all X values of all series for each axis. */ |
199 protected Map<Integer, Bounds> xBounds; | 199 protected Map<Integer, Bounds> xBounds; |
200 | 200 |
201 /** The max Y range to include all Y values of all series for each axis. */ | 201 /** The max Y range to include all Y values of all series for each axis. */ |
202 protected Map<Integer, Bounds> yBounds; | 202 protected Map<Integer, Bounds> yBounds; |
359 // that every data-point could be seen (except for annotations). | 359 // that every data-point could be seen (except for annotations). |
360 axisDataset.includeYRange(series); | 360 axisDataset.includeYRange(series); |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 | 364 |
365 /** | 365 /** |
366 * Add the given vertical marker to the chart. | 366 * Add the given vertical marker to the chart. |
367 */ | 367 */ |
368 public void addDomainMarker(Marker marker) { | 368 public void addDomainMarker(Marker marker) { |
369 if (marker == null) { | 369 if (marker == null) { |
958 } | 958 } |
959 if (ThemeUtil.parseShowVerticalLine(theme)) { | 959 if (ThemeUtil.parseShowVerticalLine(theme)) { |
960 XYLineAnnotation lineBackAnnotation = | 960 XYLineAnnotation lineBackAnnotation = |
961 createStickyLineAnnotation( | 961 createStickyLineAnnotation( |
962 StickyAxisAnnotation.SimpleAxis.X_AXIS, | 962 StickyAxisAnnotation.SimpleAxis.X_AXIS, |
963 annotation.getHitPoint(), annotation.getPos(), | 963 annotation.getHitPoint(), annotation.getPos(), |
964 area, lineStyle); | 964 area, lineStyle); |
965 plot.getRenderer(rendererIndex).addAnnotation(lineBackAnnotation, | 965 plot.getRenderer(rendererIndex).addAnnotation(lineBackAnnotation, |
966 org.jfree.ui.Layer.BACKGROUND); | 966 org.jfree.ui.Layer.BACKGROUND); |
967 } | 967 } |
968 } | 968 } |
1224 } | 1224 } |
1225 } | 1225 } |
1226 catch(JSONException e){ | 1226 catch(JSONException e){ |
1227 logger.error("Could not decode json."); | 1227 logger.error("Could not decode json."); |
1228 } | 1228 } |
1229 | 1229 |
1230 FLYSAnnotation annotations = new FLYSAnnotation(null, null, null, theme); | 1230 FLYSAnnotation annotations = new FLYSAnnotation(null, null, null, theme); |
1231 annotations.setTextAnnotations(xy); | 1231 annotations.setTextAnnotations(xy); |
1232 | 1232 |
1233 // Do not generate second legend entry. (null was passed for the aand before). | 1233 // Do not generate second legend entry. (null was passed for the aand before). |
1234 doAnnotations(annotations, null, theme, visible); | 1234 doAnnotations(annotations, null, theme, visible); |
1248 // getLabel() | 1248 // getLabel() |
1249 // getLine() | 1249 // getLine() |
1250 // getLinePaint() | 1250 // getLinePaint() |
1251 // getLineStroke() | 1251 // getLineStroke() |
1252 // getOutlinePaint() | 1252 // getOutlinePaint() |
1253 // getOutlineStroke() | 1253 // getOutlineStroke() |
1254 // Shape getShape() | 1254 // Shape getShape() |
1255 // String getToolTipText() | 1255 // String getToolTipText() |
1256 // String getURLText() | 1256 // String getURLText() |
1257 // boolean isLineVisible() | 1257 // boolean isLineVisible() |
1258 // boolean isShapeFilled() | 1258 // boolean isShapeFilled() |