Java Doc for AbstractXYItemRenderer.java in  » Chart » jfreechart » org » jfree » chart » renderer » xy » 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.xy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.renderer.AbstractRenderer
      org.jfree.chart.renderer.xy.AbstractXYItemRenderer

All known Subclasses:   org.jfree.chart.renderer.xy.XYBarRenderer,  org.jfree.chart.renderer.xy.XYBoxAndWhiskerRenderer,  org.jfree.chart.renderer.xy.XYDotRenderer,  org.jfree.chart.renderer.xy.StandardXYItemRenderer,  org.jfree.chart.renderer.xy.YIntervalRenderer,  org.jfree.chart.renderer.xy.XYLineAndShapeRenderer,  org.jfree.chart.renderer.xy.XYBubbleRenderer,  org.jfree.chart.renderer.xy.XYBlockRenderer,  org.jfree.chart.renderer.xy.HighLowRenderer,  org.jfree.chart.renderer.xy.VectorRenderer,  org.jfree.chart.renderer.xy.XYDifferenceRenderer,  org.jfree.chart.renderer.xy.XYStepAreaRenderer,  org.jfree.chart.renderer.xy.XYAreaRenderer,  org.jfree.chart.renderer.xy.XYAreaRenderer2,  org.jfree.chart.renderer.xy.CandlestickRenderer,  org.jfree.chart.renderer.xy.WindItemRenderer,
AbstractXYItemRenderer
abstract public class AbstractXYItemRenderer extends AbstractRenderer implements XYItemRenderer,Cloneable,Serializable(Code)
A base class that can be used to create new XYItemRenderer implementations.



Constructor Summary
protected  AbstractXYItemRenderer()
     Creates a renderer where the tooltip generator and the URL generator are both null.

Method Summary
public  voidaddAnnotation(XYAnnotation annotation)
     Adds an annotation and sends a RendererChangeEvent to all registered listeners.
public  voidaddAnnotation(XYAnnotation annotation, Layer layer)
     Adds an annotation to the specified layer.
protected  voidaddEntity(EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)
     Adds an entity to the collection.
protected  Point2DcalculateDomainMarkerTextAnchorPoint(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 area.
Parameters:
  markerOffset - the marker label offset.
Parameters:
  labelOffsetType - the label offset type.
Parameters:
  anchor - the label anchor.
protected  Objectclone()
     Returns a clone of the renderer.
public  voiddrawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)
     Draws all the annotations for the specified layer.
public  voiddrawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)
     Draws a grid line against the range axis.
public  voiddrawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)
     Draws a line perpendicular to the domain axis.
public  voiddrawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)
     Draws a vertical line on the chart to represent a 'range marker'.
protected  voiddrawItemLabel(Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, double x, double y, boolean negative)
     Draws an item label.
public  voiddrawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)
     Draws a line perpendicular to the range axis.
public  voiddrawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)
     Draws a horizontal line across the chart to represent a 'range marker'.
public  booleanequals(Object obj)
     Tests this renderer for equality with another object.
Parameters:
  obj - the object (null permitted).
public  voidfillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)
     Fills a band between two values on the axis.
public  voidfillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)
     Fills a band between two values on the range axis.
public  RangefindDomainBounds(XYDataset dataset)
     Returns the lower and upper bounds (range) of the x-values in the specified dataset.
Parameters:
  dataset - the dataset (null permitted).
public  RangefindRangeBounds(XYDataset 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  XYItemLabelGeneratorgetBaseItemLabelGenerator()
     Returns the base item label generator.
public  XYToolTipGeneratorgetBaseToolTipGenerator()
     Returns the base tool tip generator.
public  intgetDefaultEntityRadius()
     Returns the radius of the circle used for the default entity area when no area is specified.
public  DrawingSuppliergetDrawingSupplier()
     Returns the drawing supplier from the plot.
public  XYItemLabelGeneratorgetItemLabelGenerator(int series, int item)
     Returns the label generator for a data item.
public  XYItemLabelGeneratorgetItemLabelGenerator()
     Returns the item label generator override.
public  LegendItemgetLegendItem(int datasetIndex, int series)
     Returns a default legend item for the specified series.
public  XYSeriesLabelGeneratorgetLegendItemLabelGenerator()
     Returns the legend item label generator.
public  XYSeriesLabelGeneratorgetLegendItemToolTipGenerator()
     Returns the legend item tool tip generator.
public  XYSeriesLabelGeneratorgetLegendItemURLGenerator()
     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 data that the renderer requires in order to draw the chart.
public  XYPlotgetPlot()
     Returns the plot that the renderer is assigned to.
public  XYItemLabelGeneratorgetSeriesItemLabelGenerator(int series)
     Returns the item label generator for a series.
Parameters:
  series - the series index (zero based).
public  XYToolTipGeneratorgetSeriesToolTipGenerator(int series)
     Returns the tool tip generator for a series.
Parameters:
  series - the series index (zero based).
public  XYToolTipGeneratorgetToolTipGenerator(int series, int item)
     Returns the tool tip generator for a data item.
public  XYToolTipGeneratorgetToolTipGenerator()
     Returns the override tool tip generator.
public  XYURLGeneratorgetURLGenerator()
     Returns the URL generator for HTML image maps.
public  XYItemRendererStateinitialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)
     Initialises the renderer and returns a state object that should be passed to all subsequent calls to the drawItem() method.

This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain.

public  booleanremoveAnnotation(XYAnnotation annotation)
     Removes the specified annotation and sends a RendererChangeEvent to all registered listeners.
Parameters:
  annotation - the annotation to remove (null notpermitted).
public  voidremoveAnnotations()
     Removes all annotations and sends a RendererChangeEvent to all registered listeners.
public  voidsetBaseItemLabelGenerator(XYItemLabelGenerator generator)
     Sets the base item label generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetBaseToolTipGenerator(XYToolTipGenerator generator)
     Sets the base tool tip generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetDefaultEntityRadius(int radius)
     Sets the radius of the circle used for the default entity area when no area is specified.
public  voidsetItemLabelGenerator(XYItemLabelGenerator generator)
     Sets the item label generator for ALL series and sends a RendererChangeEvent to all registered listeners.
public  voidsetLegendItemLabelGenerator(XYSeriesLabelGenerator generator)
     Sets the legend item label generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)
     Sets the legend item tool tip generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetLegendItemURLGenerator(XYSeriesLabelGenerator generator)
     Sets the legend item URL generator and sends a RendererChangeEvent to all registered listeners.
public  voidsetPlot(XYPlot plot)
     Sets the plot that the renderer is assigned to.
public  voidsetSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)
     Sets the item label generator for a series and sends a RendererChangeEvent to all registered listeners.
public  voidsetSeriesToolTipGenerator(int series, XYToolTipGenerator generator)
     Sets the tool tip generator for a series and sends a RendererChangeEvent to all registered listeners.
public  voidsetToolTipGenerator(XYToolTipGenerator generator)
     Sets the tool tip generator for ALL series and sends a RendererChangeEvent to all registered listeners.
public  voidsetURLGenerator(XYURLGenerator urlGenerator)
     Sets the URL generator for HTML image maps.
protected  voidupdateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)
     Considers the current (x, y) coordinate and updates the crosshair point if it meets the criteria (usually means the (x, y) coordinate is the closest to the anchor point so far).
protected  voidupdateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)
     Considers the current (x, y) coordinate and updates the crosshair point if it meets the criteria (usually means the (x, y) coordinate is the closest to the anchor point so far).


Constructor Detail
AbstractXYItemRenderer
protected AbstractXYItemRenderer()(Code)
Creates a renderer where the tooltip generator and the URL generator are both null.




Method Detail
addAnnotation
public void addAnnotation(XYAnnotation annotation)(Code)
Adds an annotation and sends a RendererChangeEvent to all registered listeners. The annotation is added to the foreground layer.
Parameters:
  annotation - the annotation (null not permitted).



addAnnotation
public void addAnnotation(XYAnnotation annotation, Layer layer)(Code)
Adds an annotation to the specified layer.
Parameters:
  annotation - the annotation (null not permitted).
Parameters:
  layer - the layer (null not permitted).



addEntity
protected void addEntity(EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)(Code)
Adds an entity to the collection.
Parameters:
  entities - the entity collection being populated.
Parameters:
  area - the entity area (if null a default will beused).
Parameters:
  dataset - the dataset.
Parameters:
  series - the series.
Parameters:
  item - the item.
Parameters:
  entityX - the entity's center x-coordinate in user space.
Parameters:
  entityY - the entity's center y-coordinate in user space.



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 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 area.
Parameters:
  markerOffset - the marker label offset.
Parameters:
  labelOffsetType - the label offset type.
Parameters:
  anchor - the label anchor. The coordinates for drawing the marker label.



clone
protected Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the renderer. A clone.
throws:
  CloneNotSupportedException - if the renderer does not supportcloning.



drawAnnotations
public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)(Code)
Draws all the annotations for the specified layer.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  domainAxis - the domain axis.
Parameters:
  rangeAxis - the range axis.
Parameters:
  layer - the layer.
Parameters:
  info - the plot rendering info.



drawDomainGridLine
public void drawDomainGridLine(Graphics2D g2, XYPlot 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.



drawDomainLine
public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)
Draws a line perpendicular to the domain 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 any 3Deffect).
Parameters:
  value - the value at which the grid line should be drawn.
Parameters:
  paint - the paint.
Parameters:
  stroke - the stroke.
since:
   1.0.5



drawDomainMarker
public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)(Code)
Draws a vertical line on the chart to represent a 'range marker'.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  domainAxis - the domain axis.
Parameters:
  marker - the marker line.
Parameters:
  dataArea - the axis data area.



drawItemLabel
protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, 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:
  series - the series index (zero-based).
Parameters:
  item - the item index (zero-based).
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).



drawRangeLine
public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)
Draws a line perpendicular to 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 any 3Deffect).
Parameters:
  value - the value at which the grid line should be drawn.
Parameters:
  paint - the paint.
Parameters:
  stroke - the stroke.



drawRangeMarker
public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)(Code)
Draws a horizontal line across the chart to represent a 'range marker'.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  rangeAxis - the range axis.
Parameters:
  marker - the marker line.
Parameters:
  dataArea - the axis data area.



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



fillDomainGridBand
public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)
Fills a band between two values on the axis. This can be used to color bands between the grid lines.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  axis - the domain axis.
Parameters:
  dataArea - the data area.
Parameters:
  start - the start value.
Parameters:
  end - the end value.



fillRangeGridBand
public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)
Fills a band between two values on the range axis. This can be used to color bands between the grid lines.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  axis - the range axis.
Parameters:
  dataArea - the data area.
Parameters:
  start - the start value.
Parameters:
  end - the end value.



findDomainBounds
public Range findDomainBounds(XYDataset dataset)(Code)
Returns the lower and upper bounds (range) of the x-values in the specified dataset.
Parameters:
  dataset - the dataset (null permitted). The range (null if the dataset is nullor empty).



findRangeBounds
public Range findRangeBounds(XYDataset 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 (null if the dataset is nullor empty).



getBaseItemLabelGenerator
public XYItemLabelGenerator getBaseItemLabelGenerator()(Code)
Returns the base item label generator. The generator (possibly null).



getBaseToolTipGenerator
public XYToolTipGenerator getBaseToolTipGenerator()(Code)
Returns the base tool tip generator. The generator (possibly null).
See Also:   AbstractXYItemRenderer.setBaseToolTipGenerator(XYToolTipGenerator)



getDefaultEntityRadius
public int getDefaultEntityRadius()(Code)
Returns the radius of the circle used for the default entity area when no area is specified. A radius.



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



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



getItemLabelGenerator
public XYItemLabelGenerator getItemLabelGenerator()(Code)
Returns the item label generator override. The generator (possibly null).
since:
   1.0.5
See Also:   AbstractXYItemRenderer.setItemLabelGenerator(XYItemLabelGenerator)AbstractXYItemRenderer.getBaseItemLabelGenerator()



getLegendItem
public LegendItem getLegendItem(int datasetIndex, int series)(Code)
Returns a default legend item for the specified series. Subclasses should override this method to generate customised items.
Parameters:
  datasetIndex - the dataset index (zero-based).
Parameters:
  series - the series index (zero-based). A legend item for the series.



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



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



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



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).



getPassCount
public int getPassCount()(Code)
Returns the number of passes through the data that the renderer requires in order to draw the chart. Most charts will require a single pass, but some require two passes. The pass count.



getPlot
public XYPlot getPlot()(Code)
Returns the plot that the renderer is assigned to. The plot (possibly null).



getSeriesItemLabelGenerator
public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)
Returns the item label generator for a series.
Parameters:
  series - the series index (zero based). The generator (possibly null).



getSeriesToolTipGenerator
public XYToolTipGenerator getSeriesToolTipGenerator(int series)(Code)
Returns the tool tip generator for a series.
Parameters:
  series - the series index (zero based). The generator (possibly null).



getToolTipGenerator
public XYToolTipGenerator getToolTipGenerator(int series, int item)(Code)
Returns the tool tip generator for a data item. If, for some reason, you want a different generator for individual items, you can override this method.
Parameters:
  series - the series index (zero based).
Parameters:
  item - the item index (zero based). The generator (possibly null).



getToolTipGenerator
public XYToolTipGenerator getToolTipGenerator()(Code)
Returns the override tool tip generator. The tool tip generator (possible null).
since:
   1.0.5
See Also:   AbstractXYItemRenderer.setToolTipGenerator(XYToolTipGenerator)AbstractXYItemRenderer.getBaseToolTipGenerator()



getURLGenerator
public XYURLGenerator getURLGenerator()(Code)
Returns the URL generator for HTML image maps. The URL generator (possibly null).



initialise
public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)
Initialises the renderer and returns a state object that should be passed to all subsequent calls to the drawItem() method.

This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the area inside the axes.
Parameters:
  plot - the plot.
Parameters:
  data - the data.
Parameters:
  info - an optional info collection object to return data back tothe caller. The renderer state (never null).




removeAnnotation
public boolean removeAnnotation(XYAnnotation annotation)(Code)
Removes the specified annotation and sends a RendererChangeEvent to all registered listeners.
Parameters:
  annotation - the annotation to remove (null notpermitted). A boolean to indicate whether or not the annotation wassuccessfully removed.



removeAnnotations
public void removeAnnotations()(Code)
Removes all annotations and sends a RendererChangeEvent to all registered listeners.



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



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



setDefaultEntityRadius
public void setDefaultEntityRadius(int radius)(Code)
Sets the radius of the circle used for the default entity area when no area is specified.
Parameters:
  radius - the radius.



setItemLabelGenerator
public void setItemLabelGenerator(XYItemLabelGenerator generator)(Code)
Sets the item label generator for ALL series and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractXYItemRenderer.getItemLabelGenerator()AbstractXYItemRenderer.setBaseItemLabelGenerator(XYItemLabelGenerator)



setLegendItemLabelGenerator
public void setLegendItemLabelGenerator(XYSeriesLabelGenerator 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:   AbstractXYItemRenderer.getLegendItemLabelGenerator()



setLegendItemToolTipGenerator
public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator 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:   AbstractXYItemRenderer.getLegendItemToolTipGenerator()



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



setPlot
public void setPlot(XYPlot plot)(Code)
Sets the plot that the renderer is assigned to.
Parameters:
  plot - the plot (null permitted).



setSeriesItemLabelGenerator
public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator 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).



setSeriesToolTipGenerator
public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)(Code)
Sets the tool tip 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).



setToolTipGenerator
public void setToolTipGenerator(XYToolTipGenerator generator)(Code)
Sets the tool tip generator for ALL series and sends a RendererChangeEvent to all registered listeners.
Parameters:
  generator - the generator (null permitted).
See Also:   AbstractXYItemRenderer.getToolTipGenerator()AbstractXYItemRenderer.setBaseToolTipGenerator(XYToolTipGenerator)



setURLGenerator
public void setURLGenerator(XYURLGenerator urlGenerator)(Code)
Sets the URL generator for HTML image maps.
Parameters:
  urlGenerator - the URL generator (null permitted).



updateCrosshairValues
protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)(Code)
Considers the current (x, y) coordinate and updates the crosshair point if it meets the criteria (usually means the (x, y) coordinate is the closest to the anchor point so far).
Parameters:
  crosshairState - the crosshair state (null permitted,but the method does nothing in that case).
Parameters:
  x - the x-value (in data space).
Parameters:
  y - the y-value (in data space).
Parameters:
  transX - the x-value translated to Java2D space.
Parameters:
  transY - the y-value translated to Java2D space.
Parameters:
  orientation - the plot orientation (null notpermitted).AbstractXYItemRenderer.updateCrosshairValues(CrosshairState,double,double,int,int,double,double,PlotOrientation)



updateCrosshairValues
protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)(Code)
Considers the current (x, y) coordinate and updates the crosshair point if it meets the criteria (usually means the (x, y) coordinate is the closest to the anchor point so far).
Parameters:
  crosshairState - the crosshair state (null permitted,but the method does nothing in that case).
Parameters:
  x - the x-value (in data space).
Parameters:
  y - the y-value (in data space).
Parameters:
  domainAxisIndex - the index of the domain axis for the point.
Parameters:
  rangeAxisIndex - the index of the range axis for the point.
Parameters:
  transX - the x-value translated to Java2D space.
Parameters:
  transY - the y-value translated to Java2D space.
Parameters:
  orientation - the plot orientation (null notpermitted).
since:
   1.0.4



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.