Java Doc for AbstractCategoryItemRenderer.java in  » Chart » jfreechart » org » jfree » chart » renderer » category » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Chart » jfreechart » org.jfree.chart.renderer.category 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.renderer.AbstractRenderer
      org.jfree.chart.renderer.category.AbstractCategoryItemRenderer

All known Subclasses:   org.jfree.chart.renderer.category.AreaRenderer,  org.jfree.chart.renderer.category.LevelRenderer,  org.jfree.chart.renderer.category.BoxAndWhiskerRenderer,  org.jfree.chart.renderer.category.BarRenderer,  org.jfree.chart.renderer.category.MinMaxCategoryRenderer,  org.jfree.chart.renderer.category.CategoryStepRenderer,  org.jfree.chart.renderer.category.LineAndShapeRenderer,
AbstractCategoryItemRenderer
abstract public class AbstractCategoryItemRenderer extends AbstractRenderer implements CategoryItemRenderer,Cloneable,PublicCloneable,Serializable(Code)
An abstract base class that you can use to implement a new CategoryItemRenderer . When you create a new CategoryItemRenderer you are not required to extend this class, but it makes the job easier.



Constructor Summary
protected  AbstractCategoryItemRenderer()
     Creates a new renderer with no tool tip generator and no URL generator. The defaults (no tool tip or URL generators) have been chosen to minimise the processing required to generate a default chart.

Method Summary
protected  voidaddItemEntity(EntityCollection entities, CategoryDataset dataset, int row, int column, Shape hotspot)
     Adds an entity with the specified hotspot.
protected  Point2DcalculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)
     Calculates the (x, y) coordinates for drawing the label for a marker on the range axis.
Parameters:
  g2 - the graphics device.
Parameters:
  orientation - the plot orientation.
Parameters:
  dataArea - the data area.
Parameters:
  markerArea - the rectangle surrounding the marker.
Parameters:
  markerOffset - the marker offset.
Parameters:
  labelOffsetType - the label offset type.
Parameters:
  anchor - the label anchor.
protected  Point2DcalculateRangeMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)
     Calculates the (x, y) coordinates for drawing a marker label.
Parameters:
  g2 - the graphics device.
Parameters:
  orientation - the plot orientation.
Parameters:
  dataArea - the data area.
Parameters:
  markerArea - the rectangle surrounding the marker.
Parameters:
  markerOffset - the marker offset.
Parameters:
  labelOffsetType - the label offset type.
Parameters:
  anchor - the label anchor.
public  Objectclone()
     Returns an independent copy of the renderer.
protected  CategoryItemRendererStatecreateState(PlotRenderingInfo info)
     Creates a new state instance---this method is called from the AbstractCategoryItemRenderer.initialise(Graphics2D,Rectangle2D,CategoryPlot,int,PlotRenderingInfo) method.
public  voiddrawBackground(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)
     Draws a background for the data area.
public  voiddrawDomainGridline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, double value)
     Draws a grid line against the domain axis.

Note that this default implementation assumes that the horizontal axis is the domain axis.

public  voiddrawDomainMarker(Graphics2D g2, CategoryPlot plot, CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea)
     Draws a marker for the domain axis.
protected  voiddrawItemLabel(Graphics2D g2, PlotOrientation orientation, CategoryDataset dataset, int row, int column, double x, double y, boolean negative)
     Draws an item label.
public  voiddrawOutline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)
     Draws an outline for the data area.
public  voiddrawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)
     Draws a grid line against the range axis.
public  voiddrawRangeMarker(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)
     Draws a marker for the range axis.
public  booleanequals(Object obj)
     Tests this renderer for equality with another object.
Parameters:
  obj - the object.
public  RangefindRangeBounds(CategoryDataset dataset)
     Returns the range of values the renderer requires to display all the items from the specified dataset.
Parameters:
  dataset - the dataset (null permitted).
public  CategoryItemLabelGeneratorgetBaseItemLabelGenerator()
     Returns the base item label generator.
public  CategoryURLGeneratorgetBaseItemURLGenerator()
     Returns the base item URL generator.
public  CategoryToolTipGeneratorgetBaseToolTipGenerator()
     Returns the base tool tip generator (the "layer 2" generator).
public  intgetColumnCount()
     Returns the number of columns in the dataset.
protected  CategoryAxisgetDomainAxis(CategoryPlot plot, int index)
     Returns a domain axis for a plot.
Parameters:
  plot - the plot.
Parameters:
  index - the axis index.
public  DrawingSuppliergetDrawingSupplier()
     Returns the drawing supplier from the plot.
public  CategoryItemLabelGeneratorgetItemLabelGenerator(int row, int column)
     Returns the item label generator for a data item.
public  CategoryURLGeneratorgetItemURLGenerator(int row, int column)
     Returns the URL generator for a data item.
public  LegendItemgetLegendItem(int datasetIndex, int series)
     Returns a legend item for a series.
public  CategorySeriesLabelGeneratorgetLegendItemLabelGenerator()
     Returns the legend item label generator.
public  CategorySeriesLabelGeneratorgetLegendItemToolTipGenerator()
     Returns the legend item tool tip generator.
public  CategorySeriesLabelGeneratorgetLegendItemURLGenerator()
     Returns the legend item URL generator.
public  LegendItemCollectiongetLegendItems()
     Returns a (possibly empty) collection of legend items for the series that this renderer is responsible for drawing.
public  intgetPassCount()
     Returns the number of passes through the dataset required by the renderer.
public  CategoryPlotgetPlot()
     Returns the plot that the renderer has been assigned to (where null indicates that the renderer is not currently assigned to a plot).
protected  ValueAxisgetRangeAxis(CategoryPlot plot, int index)
     Returns a range axis for a plot.
Parameters:
  plot - the plot.
Parameters:
  index - the axis index.
public  intgetRowCount()
     Returns the number of rows in the dataset.
public  CategoryItemLabelGeneratorgetSeriesItemLabelGenerator(int series)
     Returns the item label generator for a series.
Parameters:
  series - the series index (zero based).
public  CategoryURLGeneratorgetSeriesItemURLGenerator(int series)
     Returns the URL generator for a series.
Parameters:
  series - the series index (zero based).
public  CategoryToolTipGeneratorgetSeriesToolTipGenerator(int series)
     Returns the tool tip generator for the specified series (a "layer 1" generator).
Parameters:
  series - the series index (zero-based).
public  CategoryToolTipGeneratorgetToolTipGenerator(int row, int column)
     Returns the tool tip generator that should be used for the specified item.
public  CategoryToolTipGeneratorgetToolTipGenerator()
     Returns the tool tip generator that will be used for ALL items in the dataset (the "layer 0" generator).
public  inthashCode()
     Returns a hash code for the renderer.
public  CategoryItemRendererStateinitialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)
     Initialises the renderer and returns a state object that will be used for the remainder of the drawing process for a single chart.
public  voidsetBaseItemLabelGenerator(CategoryItemLabelGenerator generator)
     Sets the base item label generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetBaseItemURLGenerator(CategoryURLGenerator generator)
     Sets the base item URL generator.
public  voidsetBaseToolTipGenerator(CategoryToolTipGenerator generator)
     Sets the base tool tip generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetItemLabelGenerator(CategoryItemLabelGenerator generator)
     Sets the item label generator for ALL series and sends a RendererChangeEvent to all registered listeners.
public  voidsetItemURLGenerator(CategoryURLGenerator generator)
     Sets the item URL generator for ALL series.
public  voidsetLegendItemLabelGenerator(CategorySeriesLabelGenerator generator)
     Sets the legend item label generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetLegendItemToolTipGenerator(CategorySeriesLabelGenerator generator)
     Sets the legend item tool tip generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetLegendItemURLGenerator(CategorySeriesLabelGenerator generator)
     Sets the legend item URL generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetPlot(CategoryPlot plot)
     Sets the plot that the renderer has been assigned to.
public  voidsetSeriesItemLabelGenerator(int series, CategoryItemLabelGenerator generator)
     Sets the item label generator for a series and sends a RendererChangeEvent to all registered listeners.
public  voidsetSeriesItemURLGenerator(int series, CategoryURLGenerator generator)
     Sets the URL generator for a series.
public  voidsetSeriesToolTipGenerator(int series, CategoryToolTipGenerator generator)
     Sets the tool tip generator for a series and sends a org.jfree.chart.event.RendererChangeEvent to all registered listeners.
public  voidsetToolTipGenerator(CategoryToolTipGenerator generator)
     Sets the tool tip generator for ALL series and sends a org.jfree.chart.event.RendererChangeEvent to all registered listeners.


Constructor Detail
AbstractCategoryItemRenderer
protected AbstractCategoryItemRenderer()(Code)
Creates a new renderer with no tool tip generator and no URL generator. The defaults (no tool tip or URL generators) have been chosen to minimise the processing required to generate a default chart. If you require tool tips or URLs, then you can easily add the required generators.




Method Detail
addItemEntity
protected void addItemEntity(EntityCollection entities, CategoryDataset dataset, int row, int column, Shape hotspot)(Code)
Adds an entity with the specified hotspot.
Parameters:
  entities - the entity collection.
Parameters:
  dataset - the dataset.
Parameters:
  row - the row index.
Parameters:
  column - the column index.
Parameters:
  hotspot - the hotspot.



calculateDomainMarkerTextAnchorPoint
protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)
Calculates the (x, y) coordinates for drawing the label for a marker on the range axis.
Parameters:
  g2 - the graphics device.
Parameters:
  orientation - the plot orientation.
Parameters:
  dataArea - the data area.
Parameters:
  markerArea - the rectangle surrounding the marker.
Parameters:
  markerOffset - the marker offset.
Parameters:
  labelOffsetType - the label offset type.
Parameters:
  anchor - the label anchor. The coordinates for drawing the marker label.



calculateRangeMarkerTextAnchorPoint
protected Point2D calculateRangeMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)
Calculates the (x, y) coordinates for drawing a marker label.
Parameters:
  g2 - the graphics device.
Parameters:
  orientation - the plot orientation.
Parameters:
  dataArea - the data area.
Parameters:
  markerArea - the rectangle surrounding the marker.
Parameters:
  markerOffset - the marker offset.
Parameters:
  labelOffsetType - the label offset type.
Parameters:
  anchor - the label anchor. The coordinates for drawing the marker label.



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns an independent copy of the renderer. The plot reference is shallow copied. A clone.
throws:
  CloneNotSupportedException - can be thrown if one of the objectsbelonging to the renderer does not support cloning (for example,an item label generator).



createState
protected CategoryItemRendererState createState(PlotRenderingInfo info)(Code)
Creates a new state instance---this method is called from the AbstractCategoryItemRenderer.initialise(Graphics2D,Rectangle2D,CategoryPlot,int,PlotRenderingInfo) method. Subclasses can override this method if they need to use a subclass of CategoryItemRendererState .
Parameters:
  info - collects plot rendering info (null permitted). The new state instance (never null).
since:
   1.0.5



drawBackground
public void drawBackground(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)(Code)
Draws a background for the data area. The default implementation just gets the plot to draw the background, but some renderers will override this behaviour.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  dataArea - the data area.



drawDomainGridline
public void drawDomainGridline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, double value)(Code)
Draws a grid line against the domain axis.

Note that this default implementation assumes that the horizontal axis is the domain axis. If this is not the case, you will need to override this method.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  dataArea - the area for plotting data (not yet adjusted for any3D effect).
Parameters:
  value - the Java2D value at which the grid line should be drawn.
See Also:   AbstractCategoryItemRenderer.drawRangeGridline(Graphics2D,CategoryPlot,ValueAxis,Rectangle2D,double)




drawDomainMarker
public void drawDomainMarker(Graphics2D g2, CategoryPlot plot, CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea)(Code)
Draws a marker for the domain axis.
Parameters:
  g2 - the graphics device (not null).
Parameters:
  plot - the plot (not null).
Parameters:
  axis - the range axis (not null).
Parameters:
  marker - the marker to be drawn (not null).
Parameters:
  dataArea - the area inside the axes (not null).
See Also:   AbstractCategoryItemRenderer.drawRangeMarker(Graphics2D,CategoryPlot,ValueAxis,Marker,Rectangle2D)



drawItemLabel
protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, CategoryDataset dataset, int row, int column, double x, double y, boolean negative)(Code)
Draws an item label.
Parameters:
  g2 - the graphics device.
Parameters:
  orientation - the orientation.
Parameters:
  dataset - the dataset.
Parameters:
  row - the row.
Parameters:
  column - the column.
Parameters:
  x - the x coordinate (in Java2D space).
Parameters:
  y - the y coordinate (in Java2D space).
Parameters:
  negative - indicates a negative value (which affects the itemlabel position).



drawOutline
public void drawOutline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)(Code)
Draws an outline for the data area. The default implementation just gets the plot to draw the outline, but some renderers will override this behaviour.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  dataArea - the data area.



drawRangeGridline
public void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)
Draws a grid line against the range axis.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  axis - the value axis.
Parameters:
  dataArea - the area for plotting data (not yet adjusted for any3D effect).
Parameters:
  value - the value at which the grid line should be drawn.
See Also:   AbstractCategoryItemRenderer.drawDomainGridline(Graphics2D,CategoryPlot,Rectangle2D,double)



drawRangeMarker
public void drawRangeMarker(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)(Code)
Draws a marker for the range axis.
Parameters:
  g2 - the graphics device (not null).
Parameters:
  plot - the plot (not null).
Parameters:
  axis - the range axis (not null).
Parameters:
  marker - the marker to be drawn (not null).
Parameters:
  dataArea - the area inside the axes (not null).
See Also:   AbstractCategoryItemRenderer.drawDomainMarker(Graphics2D,CategoryPlot,CategoryAxis,CategoryMarker,Rectangle2D)



equals
public boolean equals(Object obj)(Code)
Tests this renderer for equality with another object.
Parameters:
  obj - the object. true or false.



findRangeBounds
public Range findRangeBounds(CategoryDataset dataset)(Code)
Returns the range of values the renderer requires to display all the items from the specified dataset.
Parameters:
  dataset - the dataset (null permitted). The range (or null if the dataset isnull or empty).



getBaseItemLabelGenerator
public CategoryItemLabelGenerator getBaseItemLabelGenerator()(Code)
Returns the base item label generator. The generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setBaseItemLabelGenerator(CategoryItemLabelGenerator)



getBaseItemURLGenerator
public CategoryURLGenerator getBaseItemURLGenerator()(Code)
Returns the base item URL generator. The item URL generator.
See Also:   AbstractCategoryItemRenderer.setBaseItemURLGenerator(CategoryURLGenerator)



getBaseToolTipGenerator
public CategoryToolTipGenerator getBaseToolTipGenerator()(Code)
Returns the base tool tip generator (the "layer 2" generator). The tool tip generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setBaseToolTipGenerator(CategoryToolTipGenerator)



getColumnCount
public int getColumnCount()(Code)
Returns the number of columns in the dataset. This value is updated in the AbstractCategoryItemRenderer.initialise method. The column count.



getDomainAxis
protected CategoryAxis getDomainAxis(CategoryPlot plot, int index)(Code)
Returns a domain axis for a plot.
Parameters:
  plot - the plot.
Parameters:
  index - the axis index. A domain axis.



getDrawingSupplier
public DrawingSupplier getDrawingSupplier()(Code)
Returns the drawing supplier from the plot. The drawing supplier (possibly null).



getItemLabelGenerator
public CategoryItemLabelGenerator getItemLabelGenerator(int row, int column)(Code)
Returns the item label generator for a data item. This implementation simply passes control to the AbstractCategoryItemRenderer.getSeriesItemLabelGenerator(int) method. If, for some reason, you want a different generator for individual items, you can override this method.
Parameters:
  row - the row index (zero based).
Parameters:
  column - the column index (zero based). The generator (possibly null).



getItemURLGenerator
public CategoryURLGenerator getItemURLGenerator(int row, int column)(Code)
Returns the URL generator for a data item. This method just calls the getSeriesItemURLGenerator method, but you can override this behaviour if you want to.
Parameters:
  row - the row index (zero based).
Parameters:
  column - the column index (zero based). The URL generator.



getLegendItem
public LegendItem getLegendItem(int datasetIndex, int series)(Code)
Returns a legend item for a series. This default implementation will return null if AbstractCategoryItemRenderer.isSeriesVisible(int) or AbstractCategoryItemRenderer.isSeriesVisibleInLegend(int) returns false.
Parameters:
  datasetIndex - the dataset index (zero-based).
Parameters:
  series - the series index (zero-based). The legend item (possibly null).
See Also:   AbstractCategoryItemRenderer.getLegendItems()



getLegendItemLabelGenerator
public CategorySeriesLabelGenerator getLegendItemLabelGenerator()(Code)
Returns the legend item label generator. The label generator (never null).
See Also:   AbstractCategoryItemRenderer.setLegendItemLabelGenerator(CategorySeriesLabelGenerator)



getLegendItemToolTipGenerator
public CategorySeriesLabelGenerator getLegendItemToolTipGenerator()(Code)
Returns the legend item tool tip generator. The tool tip generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setLegendItemToolTipGenerator(CategorySeriesLabelGenerator)



getLegendItemURLGenerator
public CategorySeriesLabelGenerator getLegendItemURLGenerator()(Code)
Returns the legend item URL generator. The URL generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setLegendItemURLGenerator(CategorySeriesLabelGenerator)



getLegendItems
public LegendItemCollection getLegendItems()(Code)
Returns a (possibly empty) collection of legend items for the series that this renderer is responsible for drawing. The legend item collection (never null).
See Also:   AbstractCategoryItemRenderer.getLegendItem(int,int)



getPassCount
public int getPassCount()(Code)
Returns the number of passes through the dataset required by the renderer. This method returns 1, subclasses should override if they need more passes. The pass count.



getPlot
public CategoryPlot getPlot()(Code)
Returns the plot that the renderer has been assigned to (where null indicates that the renderer is not currently assigned to a plot). The plot (possibly null).
See Also:   AbstractCategoryItemRenderer.setPlot(CategoryPlot)



getRangeAxis
protected ValueAxis getRangeAxis(CategoryPlot plot, int index)(Code)
Returns a range axis for a plot.
Parameters:
  plot - the plot.
Parameters:
  index - the axis index. A range axis.



getRowCount
public int getRowCount()(Code)
Returns the number of rows in the dataset. This value is updated in the AbstractCategoryItemRenderer.initialise method. The row count.



getSeriesItemLabelGenerator
public CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)
Returns the item label generator for a series.
Parameters:
  series - the series index (zero based). The generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setSeriesItemLabelGenerator(int,CategoryItemLabelGenerator)



getSeriesItemURLGenerator
public CategoryURLGenerator getSeriesItemURLGenerator(int series)(Code)
Returns the URL generator for a series.
Parameters:
  series - the series index (zero based). The URL generator for the series.
See Also:   AbstractCategoryItemRenderer.setSeriesItemURLGenerator(int,CategoryURLGenerator)



getSeriesToolTipGenerator
public CategoryToolTipGenerator getSeriesToolTipGenerator(int series)(Code)
Returns the tool tip generator for the specified series (a "layer 1" generator).
Parameters:
  series - the series index (zero-based). The tool tip generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setSeriesToolTipGenerator(int,CategoryToolTipGenerator)



getToolTipGenerator
public CategoryToolTipGenerator getToolTipGenerator(int row, int column)(Code)
Returns the tool tip generator that should be used for the specified item. This method looks up the generator using the "three-layer" approach outlined in the general description of this interface. You can override this method if you want to return a different generator per item.
Parameters:
  row - the row index (zero-based).
Parameters:
  column - the column index (zero-based). The generator (possibly null).



getToolTipGenerator
public CategoryToolTipGenerator getToolTipGenerator()(Code)
Returns the tool tip generator that will be used for ALL items in the dataset (the "layer 0" generator). A tool tip generator (possibly null).
See Also:   AbstractCategoryItemRenderer.setToolTipGenerator(CategoryToolTipGenerator)AbstractCategoryItemRenderer.getSeriesToolTipGenerator(int)AbstractCategoryItemRenderer.getBaseToolTipGenerator()



hashCode
public int hashCode()(Code)
Returns a hash code for the renderer. The hash code.



initialise
public CategoryItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)(Code)
Initialises the renderer and returns a state object that will be used for the remainder of the drawing process for a single chart. The state object allows for the fact that the renderer may be used simultaneously by multiple threads (each thread will work with a separate state object).
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  plot - the plot.
Parameters:
  rendererIndex - the renderer index.
Parameters:
  info - an object for returning information about the structure ofthe plot (null permitted). The renderer state.



setBaseItemLabelGenerator
public void setBaseItemLabelGenerator(CategoryItemLabelGenerator generator)(Code)
Sets the base item label generator and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.getBaseItemLabelGenerator()



setBaseItemURLGenerator
public void setBaseItemURLGenerator(CategoryURLGenerator generator)(Code)
Sets the base item URL generator.
Parameters:
  generator - the item URL generator.
See Also:   AbstractCategoryItemRenderer.getBaseItemURLGenerator()



setBaseToolTipGenerator
public void setBaseToolTipGenerator(CategoryToolTipGenerator generator)(Code)
Sets the base tool tip generator and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.getBaseToolTipGenerator()



setItemLabelGenerator
public void setItemLabelGenerator(CategoryItemLabelGenerator generator)(Code)
Sets the item label generator for ALL series and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).AbstractCategoryItemRenderer.setSeriesItemLabelGenerator(int,CategoryItemLabelGenerator)AbstractCategoryItemRenderer.setBaseItemLabelGenerator(CategoryItemLabelGenerator)



setItemURLGenerator
public void setItemURLGenerator(CategoryURLGenerator generator)(Code)
Sets the item URL generator for ALL series.
Parameters:
  generator - the generator.AbstractCategoryItemRenderer.setSeriesItemURLGenerator(int,CategoryURLGenerator)AbstractCategoryItemRenderer.setBaseItemURLGenerator(CategoryURLGenerator)



setLegendItemLabelGenerator
public void setLegendItemLabelGenerator(CategorySeriesLabelGenerator generator)(Code)
Sets the legend item label generator and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null not permitted).
See Also:   AbstractCategoryItemRenderer.getLegendItemLabelGenerator()



setLegendItemToolTipGenerator
public void setLegendItemToolTipGenerator(CategorySeriesLabelGenerator generator)(Code)
Sets the legend item tool tip generator and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.setLegendItemToolTipGenerator(CategorySeriesLabelGenerator)



setLegendItemURLGenerator
public void setLegendItemURLGenerator(CategorySeriesLabelGenerator generator)(Code)
Sets the legend item URL generator and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.getLegendItemURLGenerator()



setPlot
public void setPlot(CategoryPlot plot)(Code)
Sets the plot that the renderer has been assigned to. This method is usually called by the CategoryPlot , in normal usage you shouldn't need to call this method directly.
Parameters:
  plot - the plot (null not permitted).
See Also:   AbstractCategoryItemRenderer.getPlot()



setSeriesItemLabelGenerator
public void setSeriesItemLabelGenerator(int series, CategoryItemLabelGenerator generator)(Code)
Sets the item label generator for a series and sends a RendererChangeEvent to all registered listeners.
Parameters:
  series - the series index (zero based).
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.getSeriesItemLabelGenerator(int)



setSeriesItemURLGenerator
public void setSeriesItemURLGenerator(int series, CategoryURLGenerator generator)(Code)
Sets the URL generator for a series.
Parameters:
  series - the series index (zero based).
Parameters:
  generator - the generator.
See Also:   AbstractCategoryItemRenderer.getSeriesItemURLGenerator(int)



setSeriesToolTipGenerator
public void setSeriesToolTipGenerator(int series, CategoryToolTipGenerator generator)(Code)
Sets the tool tip generator for a series and sends a org.jfree.chart.event.RendererChangeEvent to all registered listeners.
Parameters:
  series - the series index (zero-based).
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.getSeriesToolTipGenerator(int)



setToolTipGenerator
public void setToolTipGenerator(CategoryToolTipGenerator generator)(Code)
Sets the tool tip generator for ALL series and sends a org.jfree.chart.event.RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractCategoryItemRenderer.getToolTipGenerator()AbstractCategoryItemRenderer.setSeriesToolTipGenerator(int,CategoryToolTipGenerator)AbstractCategoryItemRenderer.setBaseToolTipGenerator(CategoryToolTipGenerator)



Fields inherited from org.jfree.chart.renderer.AbstractRenderer
final public static Paint DEFAULT_OUTLINE_PAINT(Code)(Java Doc)
final public static Stroke DEFAULT_OUTLINE_STROKE(Code)(Java Doc)
final public static Paint DEFAULT_PAINT(Code)(Java Doc)
final public static Shape DEFAULT_SHAPE(Code)(Java Doc)
final public static Stroke DEFAULT_STROKE(Code)(Java Doc)
final public static Font DEFAULT_VALUE_LABEL_FONT(Code)(Java Doc)
final public static Paint DEFAULT_VALUE_LABEL_PAINT(Code)(Java Doc)
final public static Double ZERO(Code)(Java Doc)

Methods inherited from org.jfree.chart.renderer.AbstractRenderer
public void addChangeListener(RendererChangeListener listener)(Code)(Java Doc)
protected Point2D calculateLabelAnchorPoint(ItemLabelAnchor anchor, double x, double y, PlotOrientation orientation)(Code)(Java Doc)
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void fireChangeEvent()(Code)(Java Doc)
public boolean getAutoPopulateSeriesFillPaint()(Code)(Java Doc)
public boolean getAutoPopulateSeriesOutlinePaint()(Code)(Java Doc)
public boolean getAutoPopulateSeriesOutlineStroke()(Code)(Java Doc)
public boolean getAutoPopulateSeriesPaint()(Code)(Java Doc)
public boolean getAutoPopulateSeriesShape()(Code)(Java Doc)
public boolean getAutoPopulateSeriesStroke()(Code)(Java Doc)
public boolean getBaseCreateEntities()(Code)(Java Doc)
public Paint getBaseFillPaint()(Code)(Java Doc)
public Font getBaseItemLabelFont()(Code)(Java Doc)
public Paint getBaseItemLabelPaint()(Code)(Java Doc)
public Boolean getBaseItemLabelsVisible()(Code)(Java Doc)
public ItemLabelPosition getBaseNegativeItemLabelPosition()(Code)(Java Doc)
public Paint getBaseOutlinePaint()(Code)(Java Doc)
public Stroke getBaseOutlineStroke()(Code)(Java Doc)
public Paint getBasePaint()(Code)(Java Doc)
public ItemLabelPosition getBasePositiveItemLabelPosition()(Code)(Java Doc)
public boolean getBaseSeriesVisible()(Code)(Java Doc)
public boolean getBaseSeriesVisibleInLegend()(Code)(Java Doc)
public Shape getBaseShape()(Code)(Java Doc)
public Stroke getBaseStroke()(Code)(Java Doc)
public Boolean getCreateEntities()(Code)(Java Doc)
abstract public DrawingSupplier getDrawingSupplier()(Code)(Java Doc)
public boolean getItemCreateEntity(int series, int item)(Code)(Java Doc)
public Paint getItemFillPaint(int row, int column)(Code)(Java Doc)
public double getItemLabelAnchorOffset()(Code)(Java Doc)
public Font getItemLabelFont(int row, int column)(Code)(Java Doc)
public Font getItemLabelFont()(Code)(Java Doc)
public Paint getItemLabelPaint(int row, int column)(Code)(Java Doc)
public Paint getItemLabelPaint()(Code)(Java Doc)
public Paint getItemOutlinePaint(int row, int column)(Code)(Java Doc)
public Stroke getItemOutlineStroke(int row, int column)(Code)(Java Doc)
public Paint getItemPaint(int row, int column)(Code)(Java Doc)
public Shape getItemShape(int row, int column)(Code)(Java Doc)
public Stroke getItemStroke(int row, int column)(Code)(Java Doc)
public boolean getItemVisible(int series, int item)(Code)(Java Doc)
public ItemLabelPosition getNegativeItemLabelPosition(int row, int column)(Code)(Java Doc)
public ItemLabelPosition getNegativeItemLabelPosition()(Code)(Java Doc)
public ItemLabelPosition getPositiveItemLabelPosition(int row, int column)(Code)(Java Doc)
public ItemLabelPosition getPositiveItemLabelPosition()(Code)(Java Doc)
public Boolean getSeriesCreateEntities(int series)(Code)(Java Doc)
public Paint getSeriesFillPaint(int series)(Code)(Java Doc)
public Font getSeriesItemLabelFont(int series)(Code)(Java Doc)
public Paint getSeriesItemLabelPaint(int series)(Code)(Java Doc)
public ItemLabelPosition getSeriesNegativeItemLabelPosition(int series)(Code)(Java Doc)
public Paint getSeriesOutlinePaint(int series)(Code)(Java Doc)
public Stroke getSeriesOutlineStroke(int series)(Code)(Java Doc)
public Paint getSeriesPaint(int series)(Code)(Java Doc)
public ItemLabelPosition getSeriesPositiveItemLabelPosition(int series)(Code)(Java Doc)
public Shape getSeriesShape(int series)(Code)(Java Doc)
public Stroke getSeriesStroke(int series)(Code)(Java Doc)
public Boolean getSeriesVisible()(Code)(Java Doc)
public Boolean getSeriesVisible(int series)(Code)(Java Doc)
public Boolean getSeriesVisibleInLegend()(Code)(Java Doc)
public Boolean getSeriesVisibleInLegend(int series)(Code)(Java Doc)
public boolean hasListener(EventListener listener)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isItemLabelVisible(int row, int column)(Code)(Java Doc)
public boolean isSeriesItemLabelsVisible(int series)(Code)(Java Doc)
public boolean isSeriesVisible(int series)(Code)(Java Doc)
public boolean isSeriesVisibleInLegend(int series)(Code)(Java Doc)
public Paint lookupSeriesFillPaint(int series)(Code)(Java Doc)
public Paint lookupSeriesOutlinePaint(int series)(Code)(Java Doc)
public Stroke lookupSeriesOutlineStroke(int series)(Code)(Java Doc)
public Paint lookupSeriesPaint(int series)(Code)(Java Doc)
public Shape lookupSeriesShape(int series)(Code)(Java Doc)
public Stroke lookupSeriesStroke(int series)(Code)(Java Doc)
public void notifyListeners(RendererChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(RendererChangeListener listener)(Code)(Java Doc)
public void setAutoPopulateSeriesFillPaint(boolean auto)(Code)(Java Doc)
public void setAutoPopulateSeriesOutlinePaint(boolean auto)(Code)(Java Doc)
public void setAutoPopulateSeriesOutlineStroke(boolean auto)(Code)(Java Doc)
public void setAutoPopulateSeriesPaint(boolean auto)(Code)(Java Doc)
public void setAutoPopulateSeriesShape(boolean auto)(Code)(Java Doc)
public void setAutoPopulateSeriesStroke(boolean auto)(Code)(Java Doc)
public void setBaseCreateEntities(boolean create)(Code)(Java Doc)
public void setBaseCreateEntities(boolean create, boolean notify)(Code)(Java Doc)
public void setBaseFillPaint(Paint paint)(Code)(Java Doc)
public void setBaseFillPaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setBaseItemLabelFont(Font font)(Code)(Java Doc)
public void setBaseItemLabelFont(Font font, boolean notify)(Code)(Java Doc)
public void setBaseItemLabelPaint(Paint paint)(Code)(Java Doc)
public void setBaseItemLabelPaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setBaseItemLabelsVisible(boolean visible)(Code)(Java Doc)
public void setBaseItemLabelsVisible(Boolean visible)(Code)(Java Doc)
public void setBaseItemLabelsVisible(Boolean visible, boolean notify)(Code)(Java Doc)
public void setBaseNegativeItemLabelPosition(ItemLabelPosition position)(Code)(Java Doc)
public void setBaseNegativeItemLabelPosition(ItemLabelPosition position, boolean notify)(Code)(Java Doc)
public void setBaseOutlinePaint(Paint paint)(Code)(Java Doc)
public void setBaseOutlinePaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setBaseOutlineStroke(Stroke stroke)(Code)(Java Doc)
public void setBaseOutlineStroke(Stroke stroke, boolean notify)(Code)(Java Doc)
public void setBasePaint(Paint paint)(Code)(Java Doc)
public void setBasePaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setBasePositiveItemLabelPosition(ItemLabelPosition position)(Code)(Java Doc)
public void setBasePositiveItemLabelPosition(ItemLabelPosition position, boolean notify)(Code)(Java Doc)
public void setBaseSeriesVisible(boolean visible)(Code)(Java Doc)
public void setBaseSeriesVisible(boolean visible, boolean notify)(Code)(Java Doc)
public void setBaseSeriesVisibleInLegend(boolean visible)(Code)(Java Doc)
public void setBaseSeriesVisibleInLegend(boolean visible, boolean notify)(Code)(Java Doc)
public void setBaseShape(Shape shape)(Code)(Java Doc)
public void setBaseShape(Shape shape, boolean notify)(Code)(Java Doc)
public void setBaseStroke(Stroke stroke)(Code)(Java Doc)
public void setBaseStroke(Stroke stroke, boolean notify)(Code)(Java Doc)
public void setCreateEntities(Boolean create)(Code)(Java Doc)
public void setCreateEntities(Boolean create, boolean notify)(Code)(Java Doc)
public void setFillPaint(Paint paint)(Code)(Java Doc)
public void setFillPaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setItemLabelAnchorOffset(double offset)(Code)(Java Doc)
public void setItemLabelFont(Font font)(Code)(Java Doc)
public void setItemLabelFont(Font font, boolean notify)(Code)(Java Doc)
public void setItemLabelPaint(Paint paint)(Code)(Java Doc)
public void setItemLabelPaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setItemLabelsVisible(boolean visible)(Code)(Java Doc)
public void setItemLabelsVisible(Boolean visible)(Code)(Java Doc)
public void setItemLabelsVisible(Boolean visible, boolean notify)(Code)(Java Doc)
public void setNegativeItemLabelPosition(ItemLabelPosition position)(Code)(Java Doc)
public void setNegativeItemLabelPosition(ItemLabelPosition position, boolean notify)(Code)(Java Doc)
public void setOutlinePaint(Paint paint)(Code)(Java Doc)
public void setOutlinePaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setOutlineStroke(Stroke stroke)(Code)(Java Doc)
public void setOutlineStroke(Stroke stroke, boolean notify)(Code)(Java Doc)
public void setPaint(Paint paint)(Code)(Java Doc)
public void setPaint(Paint paint, boolean notify)(Code)(Java Doc)
public void setPositiveItemLabelPosition(ItemLabelPosition position)(Code)(Java Doc)
public void setPositiveItemLabelPosition(ItemLabelPosition position, boolean notify)(Code)(Java Doc)
public void setSeriesCreateEntities(int series, Boolean create)(Code)(Java Doc)
public void setSeriesCreateEntities(int series, Boolean create, boolean notify)(Code)(Java Doc)
public void setSeriesFillPaint(int series, Paint paint)(Code)(Java Doc)
public void setSeriesFillPaint(int series, Paint paint, boolean notify)(Code)(Java Doc)
public void setSeriesItemLabelFont(int series, Font font)(Code)(Java Doc)
public void setSeriesItemLabelFont(int series, Font font, boolean notify)(Code)(Java Doc)
public void setSeriesItemLabelPaint(int series, Paint paint)(Code)(Java Doc)
public void setSeriesItemLabelPaint(int series, Paint paint, boolean notify)(Code)(Java Doc)
public void setSeriesItemLabelsVisible(int series, boolean visible)(Code)(Java Doc)
public void setSeriesItemLabelsVisible(int series, Boolean visible)(Code)(Java Doc)
public void setSeriesItemLabelsVisible(int series, Boolean visible, boolean notify)(Code)(Java Doc)
public void setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position)(Code)(Java Doc)
public void setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position, boolean notify)(Code)(Java Doc)
public void setSeriesOutlinePaint(int series, Paint paint)(Code)(Java Doc)
public void setSeriesOutlinePaint(int series, Paint paint, boolean notify)(Code)(Java Doc)
public void setSeriesOutlineStroke(int series, Stroke stroke)(Code)(Java Doc)
public void setSeriesOutlineStroke(int series, Stroke stroke, boolean notify)(Code)(Java Doc)
public void setSeriesPaint(int series, Paint paint)(Code)(Java Doc)
public void setSeriesPaint(int series, Paint paint, boolean notify)(Code)(Java Doc)
public void setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position)(Code)(Java Doc)
public void setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position, boolean notify)(Code)(Java Doc)
public void setSeriesShape(int series, Shape shape)(Code)(Java Doc)
public void setSeriesShape(int series, Shape shape, boolean notify)(Code)(Java Doc)
public void setSeriesStroke(int series, Stroke stroke)(Code)(Java Doc)
public void setSeriesStroke(int series, Stroke stroke, boolean notify)(Code)(Java Doc)
public void setSeriesVisible(Boolean visible)(Code)(Java Doc)
public void setSeriesVisible(Boolean visible, boolean notify)(Code)(Java Doc)
public void setSeriesVisible(int series, Boolean visible)(Code)(Java Doc)
public void setSeriesVisible(int series, Boolean visible, boolean notify)(Code)(Java Doc)
public void setSeriesVisibleInLegend(Boolean visible)(Code)(Java Doc)
public void setSeriesVisibleInLegend(Boolean visible, boolean notify)(Code)(Java Doc)
public void setSeriesVisibleInLegend(int series, Boolean visible)(Code)(Java Doc)
public void setSeriesVisibleInLegend(int series, Boolean visible, boolean notify)(Code)(Java Doc)
public void setShape(Shape shape)(Code)(Java Doc)
public void setShape(Shape shape, boolean notify)(Code)(Java Doc)
public void setStroke(Stroke stroke)(Code)(Java Doc)
public void setStroke(Stroke stroke, boolean notify)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.