1 60 61 package org.jfree.chart.renderer; 62 63 import java.awt.Graphics2D ; 64 import java.awt.Paint ; 65 import java.awt.Shape ; 66 import java.awt.Stroke ; 67 import java.awt.geom.Rectangle2D ; 68 import java.beans.PropertyChangeListener ; 69 70 import org.jfree.chart.CrosshairInfo; 71 import org.jfree.chart.LegendItem; 72 import org.jfree.chart.Marker; 73 import org.jfree.chart.axis.ValueAxis; 74 import org.jfree.chart.labels.XYToolTipGenerator; 75 import org.jfree.chart.plot.PlotRenderingInfo; 76 import org.jfree.chart.plot.XYPlot; 77 import org.jfree.chart.urls.XYURLGenerator; 78 import org.jfree.data.XYDataset; 79 80 89 public interface XYItemRenderer { 90 91 105 public XYItemRendererState initialise(Graphics2D g2, 106 Rectangle2D dataArea, 107 XYPlot plot, 108 XYDataset data, 109 PlotRenderingInfo info); 110 111 116 public int getPassCount(); 117 118 123 public XYToolTipGenerator getToolTipGenerator(); 124 125 130 public void setToolTipGenerator(XYToolTipGenerator toolTipGenerator); 131 132 137 public XYURLGenerator getURLGenerator(); 138 139 144 public void setURLGenerator(XYURLGenerator urlGenerator); 145 146 151 public void addPropertyChangeListener(PropertyChangeListener listener); 152 153 158 public void removePropertyChangeListener(PropertyChangeListener listener); 159 160 161 169 public Paint getItemPaint(int series, int item); 170 171 178 public Paint getSeriesPaint(int series); 179 180 186 public void setSeriesPaint(int series, Paint paint); 187 188 196 public Paint getItemOutlinePaint(int series, int item); 197 198 205 public Paint getSeriesOutlinePaint(int series); 206 207 209 217 public Stroke getItemStroke(int series, int item); 218 219 226 public Stroke getSeriesStroke(int series); 227 228 233 public void setStroke(Stroke stroke); 234 235 241 public void setSeriesStroke(int series, Stroke stroke); 242 243 248 public Stroke getBaseStroke(); 249 250 255 public void setBaseStroke(Stroke stroke); 256 257 265 public Shape getItemShape(int series, int item); 266 267 275 public Shape getSeriesShape(int series); 276 277 296 public void drawItem(Graphics2D g2, 297 XYItemRendererState state, 298 Rectangle2D dataArea, 299 PlotRenderingInfo info, 300 XYPlot plot, 301 ValueAxis domainAxis, 302 ValueAxis rangeAxis, 303 XYDataset dataset, 304 int series, 305 int item, 306 CrosshairInfo crosshairInfo, 307 int pass); 308 309 317 public LegendItem getLegendItem(int datasetIndex, int series); 318 319 330 public void fillDomainGridBand(Graphics2D g2, 331 XYPlot plot, 332 ValueAxis axis, 333 Rectangle2D dataArea, 334 double start, double end); 335 336 347 public void fillRangeGridBand(Graphics2D g2, 348 XYPlot plot, 349 ValueAxis axis, 350 Rectangle2D dataArea, 351 double start, double end); 352 353 362 public void drawDomainGridLine(Graphics2D g2, 363 XYPlot plot, 364 ValueAxis axis, 365 Rectangle2D dataArea, 366 double value); 367 368 377 public void drawRangeGridLine(Graphics2D g2, 378 XYPlot plot, 379 ValueAxis axis, 380 Rectangle2D dataArea, 381 double value); 382 383 392 public void drawDomainMarker(Graphics2D g2, 393 XYPlot plot, 394 ValueAxis axis, 395 Marker marker, 396 Rectangle2D dataArea); 397 398 407 public void drawRangeMarker(Graphics2D g2, 408 XYPlot plot, 409 ValueAxis axis, 410 Marker marker, 411 Rectangle2D dataArea); 412 413 418 public XYPlot getPlot(); 419 420 427 public void setPlot(XYPlot plot); 428 429 446 public RangeType getRangeType(); 447 448 } 449 | Popular Tags |