1 66 67 package org.jfree.chart.renderer; 68 69 import java.awt.Font ; 70 import java.awt.Graphics2D ; 71 import java.awt.Paint ; 72 import java.awt.Shape ; 73 import java.awt.Stroke ; 74 import java.awt.geom.Rectangle2D ; 75 76 import org.jfree.chart.LegendItem; 77 import org.jfree.chart.Marker; 78 import org.jfree.chart.axis.CategoryAxis; 79 import org.jfree.chart.axis.ValueAxis; 80 import org.jfree.chart.event.RendererChangeListener; 81 import org.jfree.chart.labels.CategoryItemLabelGenerator; 82 import org.jfree.chart.plot.CategoryPlot; 83 import org.jfree.chart.plot.PlotRenderingInfo; 84 import org.jfree.chart.urls.CategoryURLGenerator; 85 import org.jfree.data.CategoryDataset; 86 import org.jfree.ui.TextAnchor; 87 88 98 public interface CategoryItemRenderer { 99 100 105 public CategoryPlot getPlot(); 106 107 115 public void setPlot(CategoryPlot plot); 116 117 122 public void addChangeListener(RendererChangeListener listener); 123 124 129 public void removeChangeListener(RendererChangeListener listener); 130 131 148 public RangeType getRangeType(); 149 150 163 public CategoryItemRendererState initialise(Graphics2D g2, 164 Rectangle2D dataArea, 165 CategoryPlot plot, 166 Integer index, 167 PlotRenderingInfo info); 168 169 174 public Paint getBasePaint(); 175 176 184 public void setBasePaint(Paint paint); 185 186 194 public Paint getItemPaint(int series, int category); 195 196 203 public Paint getSeriesPaint(int series); 204 205 211 public void setSeriesPaint(int series, Paint paint); 212 213 218 public Paint getBaseOutlinePaint(); 219 220 225 public void setBaseOutlinePaint(Paint paint); 226 227 235 public Paint getItemOutlinePaint(int series, int item); 236 237 242 public void setOutlinePaint(Paint paint); 243 244 251 public Paint getSeriesOutlinePaint(int series); 252 253 259 public void setSeriesOutlinePaint(int series, Paint paint); 260 261 263 271 public Stroke getItemStroke(int series, int item); 272 273 280 public Stroke getSeriesStroke(int series); 281 282 287 public void setStroke(Stroke stroke); 288 289 295 public void setSeriesStroke(int series, Stroke stroke); 296 297 302 public Stroke getBaseStroke(); 303 304 309 public void setBaseStroke(Stroke stroke); 310 311 313 321 public Stroke getItemOutlineStroke(int series, int item); 322 323 330 public Stroke getSeriesOutlineStroke(int series); 331 332 337 public void setOutlineStroke(Stroke stroke); 338 339 345 public void setSeriesOutlineStroke(int series, Stroke stroke); 346 347 352 public Stroke getBaseOutlineStroke(); 353 354 359 public void setBaseOutlineStroke(Stroke stroke); 360 361 363 371 public Shape getItemShape(int series, int item); 372 373 380 public Shape getSeriesShape(int series); 381 382 388 public void setSeriesShape(int series, Shape shape); 389 390 395 public Shape getBaseShape(); 396 397 402 public void setBaseShape(Shape shape); 403 404 406 411 public void setItemLabelsVisible(Boolean visible); 412 413 418 public void setItemLabelsVisible(boolean visible); 419 420 422 430 public CategoryItemLabelGenerator getItemLabelGenerator(int series, int item); 431 432 439 public CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series); 440 441 446 public void setItemLabelGenerator(CategoryItemLabelGenerator generator); 447 448 454 public void setSeriesItemLabelGenerator(int series, CategoryItemLabelGenerator generator); 455 456 461 public CategoryItemLabelGenerator getBaseItemLabelGenerator(); 462 463 468 public void setBaseItemLabelGenerator(CategoryItemLabelGenerator generator); 469 470 472 482 public ItemLabelAnchor getItemLabelAnchor(int series, int item); 483 484 493 public ItemLabelAnchor getSeriesItemLabelAnchor(int series); 494 495 502 public void setItemLabelAnchor(ItemLabelAnchor anchor); 503 504 512 public void setSeriesItemLabelAnchor(int series, ItemLabelAnchor anchor); 513 514 521 public ItemLabelAnchor getBaseItemLabelAnchor(); 522 523 530 public void setBaseItemLabelAnchor(ItemLabelAnchor anchor); 531 532 534 544 public TextAnchor getItemLabelTextAnchor(int series, int item); 545 546 555 public TextAnchor getSeriesItemLabelTextAnchor(int series); 556 557 564 public void setItemLabelTextAnchor(TextAnchor anchor); 565 566 574 public void setSeriesItemLabelTextAnchor(int series, TextAnchor anchor); 575 576 583 public TextAnchor getBaseItemLabelTextAnchor(); 584 585 592 public void setBaseItemLabelTextAnchor(TextAnchor anchor); 593 594 596 604 public Font getItemLabelFont(int series, int item); 605 606 615 public Font getSeriesItemLabelFont(int series); 616 617 622 public void setItemLabelFont(Font font); 623 624 630 public void setSeriesItemLabelFont(int series, Font font); 631 632 637 public Font getBaseItemLabelFont(); 638 639 644 public void setBaseItemLabelFont(Font font); 645 646 654 public ItemLabelPosition getPositiveItemLabelPosition(int row, int column); 655 656 661 public void setPositiveItemLabelPosition(ItemLabelPosition position); 662 663 671 public ItemLabelPosition getNegativeItemLabelPosition(int row, int column); 672 673 678 public void setNegativeItemLabelPosition(ItemLabelPosition position); 679 680 682 690 public CategoryURLGenerator getItemURLGenerator(int series, int item); 691 692 699 public CategoryURLGenerator getSeriesItemURLGenerator(int series); 700 701 706 public void setItemURLGenerator(CategoryURLGenerator generator); 707 708 714 public void setSeriesItemURLGenerator(int series, CategoryURLGenerator generator); 715 716 721 public CategoryURLGenerator getBaseItemURLGenerator(); 722 723 728 public void setBaseItemURLGenerator(CategoryURLGenerator generator); 729 730 738 public LegendItem getLegendItem(int datasetIndex, int series); 739 740 747 public void drawBackground(Graphics2D g2, 748 CategoryPlot plot, 749 Rectangle2D dataArea); 750 751 758 public void drawOutline(Graphics2D g2, 759 CategoryPlot plot, 760 Rectangle2D dataArea); 761 762 775 public void drawItem(Graphics2D g2, 776 CategoryItemRendererState state, 777 Rectangle2D dataArea, 778 CategoryPlot plot, 779 CategoryAxis domainAxis, 780 ValueAxis rangeAxis, 781 CategoryDataset data, 782 int row, 783 int column); 784 785 793 public void drawDomainGridline(Graphics2D g2, 794 CategoryPlot plot, 795 Rectangle2D dataArea, 796 double value); 797 798 807 public void drawRangeGridline(Graphics2D g2, 808 CategoryPlot plot, 809 ValueAxis axis, 810 Rectangle2D dataArea, 811 double value); 812 813 822 public void drawRangeMarker(Graphics2D g2, 823 CategoryPlot plot, 824 ValueAxis axis, 825 Marker marker, 826 Rectangle2D dataArea); 827 828 } 829 | Popular Tags |