comparison gnv-artifacts/src/main/java/de/intevation/gnv/jfreechart/PolygonRenderer.java @ 815:22c18083225e

Removed compiler warnings while JavaDoc generation. gnv-artifacts/trunk@900 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 12 Apr 2010 06:59:33 +0000
parents feae2f9d6c6f
children f953c9a559d8
comparison
equal deleted inserted replaced
814:9d427dd2a96a 815:22c18083225e
90 * Constructor. 90 * Constructor.
91 */ 91 */
92 public static final PolygonSeriesLabelGenerator 92 public static final PolygonSeriesLabelGenerator
93 DEFAULT_LABEL_GENERATOR_INSTANCE = new DefaultLabelGenerator(); 93 DEFAULT_LABEL_GENERATOR_INSTANCE = new DefaultLabelGenerator();
94 94
95 /**
96 *
97 */
98 protected PaintLookup lookup; 95 protected PaintLookup lookup;
99 /** 96
100 *
101 */
102 protected PolygonSeriesLabelGenerator labelGenerator; 97 protected PolygonSeriesLabelGenerator labelGenerator;
103 98
104 /** 99
105 *
106 * @param lookup
107 */
108 public PolygonRenderer(PaintLookup lookup) { 100 public PolygonRenderer(PaintLookup lookup) {
109 this(lookup, null); 101 this(lookup, null);
110 } 102 }
111 103
112 /** 104
113 *
114 * @param lookup
115 * @param labelGenerator
116 */
117 public PolygonRenderer( 105 public PolygonRenderer(
118 PaintLookup lookup, 106 PaintLookup lookup,
119 PolygonSeriesLabelGenerator labelGenerator 107 PolygonSeriesLabelGenerator labelGenerator
120 ) { 108 ) {
121 this.lookup = lookup; 109 this.lookup = lookup;
125 /** 113 /**
126 * This method draws polygons of each series in <code>dataset</code> into 114 * This method draws polygons of each series in <code>dataset</code> into
127 * the given graphics object. If a polygon has no attribute 'fill', we 115 * the given graphics object. If a polygon has no attribute 'fill', we
128 * expect that it is a line, otherwise the polygon is filled. 116 * expect that it is a line, otherwise the polygon is filled.
129 * 117 *
130 * @param graphics
131 * @param plot
132 * @param area
133 * @param dataset
134 */ 118 */
135 public void drawPolygons( 119 public void drawPolygons(
136 Graphics2D graphics, 120 Graphics2D graphics,
137 PolygonPlot plot, 121 PolygonPlot plot,
138 Rectangle2D area, 122 Rectangle2D area,
161 145
162 /** 146 /**
163 * Draw labels at each item of a series in the given dataset. If the series 147 * Draw labels at each item of a series in the given dataset. If the series
164 * has no label attritue, no label is drawn. 148 * has no label attritue, no label is drawn.
165 * 149 *
166 * @param graphics
167 * @param plot
168 * @param area
169 * @param dataset
170 */ 150 */
171 public void drawLabels( 151 public void drawLabels(
172 final Graphics2D graphics, 152 final Graphics2D graphics,
173 final PolygonPlot plot, 153 final PolygonPlot plot,
174 final Rectangle2D area, 154 final Rectangle2D area,
239 * 219 *
240 * @param plot The plot. 220 * @param plot The plot.
241 * @param area The boundary. 221 * @param area The boundary.
242 * @param series The series storing the items. 222 * @param series The series storing the items.
243 * @param close Specifies if the polygon should be closed or not. 223 * @param close Specifies if the polygon should be closed or not.
244 * @return 224 * @return the constructed shape.
245 */ 225 */
246 protected Shape constructShape( 226 protected Shape constructShape(
247 PolygonPlot plot, 227 PolygonPlot plot,
248 Rectangle2D area, 228 Rectangle2D area,
249 PolygonSeries series, 229 PolygonSeries series,
280 return path; 260 return path;
281 } 261 }
282 262
283 /** 263 /**
284 * Retrieves the bounding box of a dataset. 264 * Retrieves the bounding box of a dataset.
285 *
286 * @param dataset
287 * @return
288 */ 265 */
289 public Rectangle2D getBoundingBox(PolygonDataset dataset) { 266 public Rectangle2D getBoundingBox(PolygonDataset dataset) {
290 Rectangle2D bbox = null; 267 Rectangle2D bbox = null;
291 268
292 for (int i = 0, N = dataset.getSeriesCount(); i < N; i++) { 269 for (int i = 0, N = dataset.getSeriesCount(); i < N; i++) {
309 return bbox; 286 return bbox;
310 } 287 }
311 288
312 /** 289 /**
313 * 290 *
314 * @param series
315 * @return the bounds of a series. 291 * @return the bounds of a series.
316 */ 292 */
317 public Rectangle2D getBounds(PolygonSeries series) { 293 public Rectangle2D getBounds(PolygonSeries series) {
318 294
319 Range domain = series.getDomainBounds(); 295 Range domain = series.getDomainBounds();

http://dive4elements.wald.intevation.org