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


java.lang.Object
   org.jfree.chart.plot.Plot
      org.jfree.chart.plot.XYPlot

All known Subclasses:   org.jfree.chart.plot.CombinedDomainXYPlot,  org.jfree.chart.plot.CombinedRangeXYPlot,
XYPlot
public class XYPlot extends Plot implements ValueAxisPlot,Zoomable,RendererChangeListener,Cloneable,PublicCloneable,Serializable(Code)
A general class for plotting data in the form of (x, y) pairs. This plot can use data from any class that implements the XYDataset interface.

XYPlot makes use of an XYItemRenderer to draw each point on the plot. By using different renderers, various chart types can be produced.

The org.jfree.chart.ChartFactory class contains static methods for creating pre-configured charts.



Field Summary
final public static  PaintDEFAULT_CROSSHAIR_PAINT
     The default crosshair paint.
final public static  StrokeDEFAULT_CROSSHAIR_STROKE
     The default crosshair stroke.
final public static  booleanDEFAULT_CROSSHAIR_VISIBLE
     The default crosshair visibility.
final public static  PaintDEFAULT_GRIDLINE_PAINT
     The default grid line paint.
final public static  StrokeDEFAULT_GRIDLINE_STROKE
     The default grid line stroke.
protected static  ResourceBundlelocalizationResources
     The resourceBundle for the localization.

Constructor Summary
public  XYPlot()
     Creates a new XYPlot instance with no dataset, no axes and no renderer.
public  XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer)
     Creates a new plot with the specified dataset, axes and renderer.

Method Summary
public  voidaddAnnotation(XYAnnotation annotation)
     Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners.
public  voidaddDomainMarker(Marker marker)
     Adds a marker for the domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidaddDomainMarker(Marker marker, Layer layer)
     Adds a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
public  voidaddDomainMarker(int index, Marker marker, Layer layer)
     Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners.
public  voidaddRangeMarker(Marker marker)
     Adds a marker for the range axis and sends a PlotChangeEvent to all registered listeners.
public  voidaddRangeMarker(Marker marker, Layer layer)
     Adds a marker for the range axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
public  voidaddRangeMarker(int index, Marker marker, Layer layer)
     Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners.
protected  AxisSpacecalculateAxisSpace(Graphics2D g2, Rectangle2D plotArea)
     Calculates the space required for all the axes in the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
protected  AxisSpacecalculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space)
     Calculates the space required for the domain axis/axes.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  space - a carrier for the result (null permitted).
protected  AxisSpacecalculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space)
     Calculates the space required for the range axis/axes.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  space - a carrier for the result (null permitted).
public  voidclearAnnotations()
     Clears all the annotations and sends a PlotChangeEvent to all registered listeners.
public  voidclearDomainAxes()
     Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.
public  voidclearDomainMarkers()
     Clears all the (foreground and background) domain markers and sends a PlotChangeEvent to all registered listeners.
public  voidclearDomainMarkers(int index)
     Clears the (foreground and background) domain markers for a particular renderer.
public  voidclearRangeAxes()
     Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners.
public  voidclearRangeMarkers()
     Clears all the range markers and sends a PlotChangeEvent to all registered listeners.
public  voidclearRangeMarkers(int index)
     Clears the (foreground and background) range markers for a particular renderer.
public  Objectclone()
     Returns a clone of the plot.
public  voidconfigureDomainAxes()
     Configures the domain axes.
public  voidconfigureRangeAxes()
     Configures the range axes.
public  voiddatasetChanged(DatasetChangeEvent event)
     Receives notification of a change to the plot's dataset.
public  voiddraw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
     Draws the plot within the specified area on a graphics device.
public  voiddrawAnnotations(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info)
     Draws the annotations for the plot.
protected  MapdrawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, PlotRenderingInfo plotState)
     A utility method for drawing the axes.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  plotArea - the plot area (null not permitted).
Parameters:
  dataArea - the data area (null not permitted).
Parameters:
  plotState - collects information about the plot (nullpermitted).
public  voiddrawBackground(Graphics2D g2, Rectangle2D area)
     Draws the background for the plot.
protected  voiddrawDomainCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint)
     Draws a domain crosshair.
protected  voiddrawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks)
     Draws the gridlines for the plot, if they are visible.
protected  voiddrawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer)
     Draws the domain markers (if any) for an axis and layer.
public  voiddrawDomainTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks)
     Draws the domain tick bands, if any.
protected  voiddrawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)
     Utility method for drawing a horizontal line across the data area of the plot.
protected  voiddrawQuadrants(Graphics2D g2, Rectangle2D area)
     Draws the quadrants.
protected  voiddrawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint)
     Draws a range crosshair.
protected  voiddrawRangeGridlines(Graphics2D g2, Rectangle2D area, List ticks)
     Draws the gridlines for the plot's primary range axis, if they are visible.
protected  voiddrawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer)
     Draws the range markers (if any) for a renderer and layer.
public  voiddrawRangeTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks)
     Draws the range tick bands, if any.
protected  voiddrawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)
     Utility method for drawing a vertical line on the data area of the plot.
protected  voiddrawZeroDomainBaseline(Graphics2D g2, Rectangle2D area)
     Draws a base line across the chart at value zero on the domain axis.
protected  voiddrawZeroRangeBaseline(Graphics2D g2, Rectangle2D area)
     Draws a base line across the chart at value zero on the range axis.
public  booleanequals(Object obj)
     Tests this plot for equality with another object.
Parameters:
  obj - the object (null permitted).
public  ListgetAnnotations()
     Returns the list of annotations.
public  RectangleInsetsgetAxisOffset()
     Returns the axis offset.
public  RangegetDataRange(ValueAxis axis)
     Returns the range for the specified axis.
Parameters:
  axis - the axis.
public  XYDatasetgetDataset()
     Returns the primary dataset for the plot.
public  XYDatasetgetDataset(int index)
     Returns a dataset.
Parameters:
  index - the dataset index.
public  intgetDatasetCount()
     Returns the number of datasets.
public  DatasetRenderingOrdergetDatasetRenderingOrder()
     Returns the dataset rendering order.
public  ValueAxisgetDomainAxis()
     Returns the domain axis with index 0.
public  ValueAxisgetDomainAxis(int index)
     Returns the domain axis with the specified index, or null.
Parameters:
  index - the axis index.
public  intgetDomainAxisCount()
     Returns the number of domain axes.
public  RectangleEdgegetDomainAxisEdge()
     Returns the edge for the primary domain axis (taking into account the plot's orientation).
public  RectangleEdgegetDomainAxisEdge(int index)
     Returns the edge for a domain axis.
Parameters:
  index - the axis index.
public  ValueAxisgetDomainAxisForDataset(int index)
     Returns the domain axis for a dataset.
Parameters:
  index - the dataset index.
public  intgetDomainAxisIndex(ValueAxis axis)
     Returns the index of the given domain axis.
Parameters:
  axis - the axis.
public  AxisLocationgetDomainAxisLocation()
     Returns the location of the primary domain axis.
public  AxisLocationgetDomainAxisLocation(int index)
     Returns the location for a domain axis.
public  PaintgetDomainCrosshairPaint()
     Returns the domain crosshair paint.
public  StrokegetDomainCrosshairStroke()
     Returns the Stroke used to draw the crosshair (if visible).
public  doublegetDomainCrosshairValue()
     Returns the domain crosshair value.
public  PaintgetDomainGridlinePaint()
     Returns the paint for the grid lines (if any) plotted against the domain axis.
public  StrokegetDomainGridlineStroke()
     Returns the stroke for the grid-lines (if any) plotted against the domain axis.
public  CollectiongetDomainMarkers(Layer layer)
     Returns the list of domain markers (read only) for the specified layer.
Parameters:
  layer - the layer (foreground or background).
public  CollectiongetDomainMarkers(int index, Layer layer)
     Returns a collection of domain markers for a particular renderer and layer.
Parameters:
  index - the renderer index.
Parameters:
  layer - the layer.
public  PaintgetDomainTickBandPaint()
     Returns the paint used for the domain tick bands.
public  PaintgetDomainZeroBaselinePaint()
     Returns the paint for the zero baseline (if any) plotted against the domain axis.
public  StrokegetDomainZeroBaselineStroke()
     Returns the stroke used for the zero baseline against the domain axis.
public  AxisSpacegetFixedDomainAxisSpace()
     Returns the fixed domain axis space.
public  LegendItemCollectiongetFixedLegendItems()
     Returns the fixed legend items, if any.
public  AxisSpacegetFixedRangeAxisSpace()
     Returns the fixed range axis space.
public  intgetIndexOf(XYItemRenderer renderer)
     Returns the index of the specified renderer, or -1 if the renderer is not assigned to this plot.
Parameters:
  renderer - the renderer (null permitted).
public  LegendItemCollectiongetLegendItems()
     Returns the legend items for the plot.
public  PlotOrientationgetOrientation()
     Returns the orientation of the plot.
public  StringgetPlotType()
     Returns the plot type as a string.
public  Point2DgetQuadrantOrigin()
     Returns the origin for the quadrants that can be displayed on the plot.
public  PaintgetQuadrantPaint(int index)
     Returns the paint used for the specified quadrant.
Parameters:
  index - the quadrant index (0-3).
public  ValueAxisgetRangeAxis()
     Returns the range axis for the plot.
public  ValueAxisgetRangeAxis(int index)
     Returns a range axis.
Parameters:
  index - the axis index.
public  intgetRangeAxisCount()
     Returns the number of range axes.
public  RectangleEdgegetRangeAxisEdge()
     Returns the edge for the primary range axis.
public  RectangleEdgegetRangeAxisEdge(int index)
     Returns the edge for a range axis.
Parameters:
  index - the axis index.
public  ValueAxisgetRangeAxisForDataset(int index)
     Returns the range axis for a dataset.
Parameters:
  index - the dataset index.
public  intgetRangeAxisIndex(ValueAxis axis)
     Returns the index of the given range axis.
Parameters:
  axis - the axis.
public  AxisLocationgetRangeAxisLocation()
     Returns the location of the primary range axis.
public  AxisLocationgetRangeAxisLocation(int index)
     Returns the location for a range axis.
public  PaintgetRangeCrosshairPaint()
     Returns the range crosshair paint.
public  StrokegetRangeCrosshairStroke()
     Returns the stroke used to draw the crosshair (if visible).
public  doublegetRangeCrosshairValue()
     Returns the range crosshair value.
public  PaintgetRangeGridlinePaint()
     Returns the paint for the grid lines (if any) plotted against the range axis.
public  StrokegetRangeGridlineStroke()
     Returns the stroke for the grid lines (if any) plotted against the range axis.
public  CollectiongetRangeMarkers(Layer layer)
     Returns the list of range markers (read only) for the specified layer.
Parameters:
  layer - the layer (foreground or background).
public  CollectiongetRangeMarkers(int index, Layer layer)
     Returns a collection of range markers for a particular renderer and layer.
Parameters:
  index - the renderer index.
Parameters:
  layer - the layer.
public  PaintgetRangeTickBandPaint()
     Returns the paint used for the range tick bands.
public  PaintgetRangeZeroBaselinePaint()
     Returns the paint for the zero baseline (if any) plotted against the range axis.
public  StrokegetRangeZeroBaselineStroke()
     Returns the stroke used for the zero baseline against the range axis.
public  XYItemRenderergetRenderer()
     Returns the renderer for the primary dataset.
public  XYItemRenderergetRenderer(int index)
     Returns the renderer for a dataset, or null.
Parameters:
  index - the renderer index.
public  XYItemRenderergetRendererForDataset(XYDataset dataset)
     Returns the renderer for the specified dataset.
public  intgetSeriesCount()
     Returns the number of series in the primary dataset for this plot.
public  SeriesRenderingOrdergetSeriesRenderingOrder()
     Returns the series rendering order.
public  intgetWeight()
     Returns the weight for this plot when it is used as a subplot within a combined plot.
public  voidhandleClick(int x, int y, PlotRenderingInfo info)
     Handles a 'click' on the plot by updating the anchor values.
public  intindexOf(XYDataset dataset)
     Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot.
Parameters:
  dataset - the dataset (null not permitted).
public  booleanisDomainCrosshairLockedOnData()
     Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
public  booleanisDomainCrosshairVisible()
     Returns a flag indicating whether or not the domain crosshair is visible.
public  booleanisDomainGridlinesVisible()
     Returns true if the domain gridlines are visible, and false otherwise.
public  booleanisDomainZeroBaselineVisible()
     Returns a flag that controls whether or not a zero baseline is displayed for the domain axis.
public  booleanisDomainZoomable()
     Returns true, indicating that the domain axis/axes for this plot are zoomable.
public  booleanisRangeCrosshairLockedOnData()
     Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
public  booleanisRangeCrosshairVisible()
     Returns a flag indicating whether or not the range crosshair is visible.
public  booleanisRangeGridlinesVisible()
     Returns true if the range axis grid is visible, and false otherwise.
public  booleanisRangeZeroBaselineVisible()
     Returns a flag that controls whether or not a zero baseline is displayed for the range axis.
public  booleanisRangeZoomable()
     Returns true, indicating that the range axis/axes for this plot are zoomable.
public  voidmapDatasetToDomainAxis(int index, int axisIndex)
     Maps a dataset to a particular domain axis.
public  voidmapDatasetToRangeAxis(int index, int axisIndex)
     Maps a dataset to a particular range axis.
public  booleanremoveAnnotation(XYAnnotation annotation)
     Removes an annotation from the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  annotation - the annotation (null not permitted).
public  booleanrender(Graphics2D g2, Rectangle2D dataArea, int index, PlotRenderingInfo info, CrosshairState crosshairState)
     Draws a representation of the data within the dataArea region, using the current renderer.

The info and crosshairState arguments may be null.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the region in which the data is to be drawn.
Parameters:
  index - the dataset index.
Parameters:
  info - an optional object for collection dimension information.
Parameters:
  crosshairState - collects crosshair information(null permitted).

public  voidrendererChanged(RendererChangeEvent event)
     Receives notification of a renderer change event.
public  voidsetAxisOffset(RectangleInsets offset)
     Sets the axis offsets (gap between the data area and the axes) and sends a PlotChangeEvent to all registered listeners.
public  voidsetDataset(XYDataset dataset)
     Sets the primary dataset for the plot, replacing the existing dataset if there is one.
public  voidsetDataset(int index, XYDataset dataset)
     Sets a dataset for the plot.
public  voidsetDatasetRenderingOrder(DatasetRenderingOrder order)
     Sets the rendering order and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxes(ValueAxis[] axes)
     Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxis(ValueAxis axis)
     Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxis(int index, ValueAxis axis)
     Sets a domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxis(int index, ValueAxis axis, boolean notify)
     Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxisLocation(AxisLocation location)
     Sets the location of the primary domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxisLocation(AxisLocation location, boolean notify)
     Sets the location of the domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxisLocation(int index, AxisLocation location)
     Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainAxisLocation(int index, AxisLocation location, boolean notify)
     Sets the axis location for a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainCrosshairLockedOnData(boolean flag)
     Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.
public  voidsetDomainCrosshairPaint(Paint paint)
     Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainCrosshairStroke(Stroke stroke)
     Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
public  voidsetDomainCrosshairValue(double value)
     Sets the domain crosshair value and sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
public  voidsetDomainCrosshairValue(double value, boolean notify)
     Sets the domain crosshair value and, if requested, sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
public  voidsetDomainCrosshairVisible(boolean flag)
     Sets the flag indicating whether or not the domain crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainGridlinePaint(Paint paint)
     Sets the paint for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainGridlineStroke(Stroke stroke)
     Sets the stroke for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainGridlinesVisible(boolean visible)
     Sets the flag that controls whether or not the domain grid-lines are visible.
public  voidsetDomainTickBandPaint(Paint paint)
     Sets the paint for the domain tick bands.
public  voidsetDomainZeroBaselinePaint(Paint paint)
     Sets the paint for the zero baseline plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainZeroBaselineStroke(Stroke stroke)
     Sets the stroke for the zero baseline for the domain axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetDomainZeroBaselineVisible(boolean visible)
     Sets the flag that controls whether or not the zero baseline is displayed for the domain axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetFixedDomainAxisSpace(AxisSpace space)
     Sets the fixed domain axis space.
public  voidsetFixedLegendItems(LegendItemCollection items)
     Sets the fixed legend items for the plot.
public  voidsetFixedRangeAxisSpace(AxisSpace space)
     Sets the fixed range axis space.
public  voidsetOrientation(PlotOrientation orientation)
     Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetQuadrantOrigin(Point2D origin)
     Sets the quadrant origin and sends a PlotChangeEvent to all registered listeners.
public  voidsetQuadrantPaint(int index, Paint paint)
     Sets the paint used for the specified quadrant and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxes(ValueAxis[] axes)
     Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxis(ValueAxis axis)
     Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxis(int index, ValueAxis axis)
     Sets a range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxis(int index, ValueAxis axis, boolean notify)
     Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxisLocation(AxisLocation location)
     Sets the location of the primary range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxisLocation(AxisLocation location, boolean notify)
     Sets the location of the primary range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxisLocation(int index, AxisLocation location)
     Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeAxisLocation(int index, AxisLocation location, boolean notify)
     Sets the axis location for a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeCrosshairLockedOnData(boolean flag)
     Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.
public  voidsetRangeCrosshairPaint(Paint paint)
     Sets the paint used to color the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeCrosshairStroke(Stroke stroke)
     Sets the stroke used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeCrosshairValue(double value)
     Sets the range crosshair value.
public  voidsetRangeCrosshairValue(double value, boolean notify)
     Sets the range crosshair value and sends a PlotChangeEvent to all registered listeners, but only if the crosshair is visible.
public  voidsetRangeCrosshairVisible(boolean flag)
     Sets the flag indicating whether or not the range crosshair is visible.
public  voidsetRangeGridlinePaint(Paint paint)
     Sets the paint for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeGridlineStroke(Stroke stroke)
     Sets the stroke for the grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeGridlinesVisible(boolean visible)
     Sets the flag that controls whether or not the range axis grid lines are visible.
public  voidsetRangeTickBandPaint(Paint paint)
     Sets the paint for the range tick bands.
public  voidsetRangeZeroBaselinePaint(Paint paint)
     Sets the paint for the zero baseline plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeZeroBaselineStroke(Stroke stroke)
     Sets the stroke for the zero baseline for the range axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetRangeZeroBaselineVisible(boolean visible)
     Sets the flag that controls whether or not the zero baseline is displayed for the range axis, and sends a PlotChangeEvent to all registered listeners.
public  voidsetRenderer(XYItemRenderer renderer)
     Sets the renderer for the primary dataset and sends a PlotChangeEvent to all registered listeners.
public  voidsetRenderer(int index, XYItemRenderer renderer)
     Sets a renderer and sends a PlotChangeEvent to all registered listeners.
public  voidsetRenderer(int index, XYItemRenderer renderer, boolean notify)
     Sets a renderer and sends a PlotChangeEvent to all registered listeners.
public  voidsetRenderers(XYItemRenderer[] renderers)
     Sets the renderers for this plot and sends a PlotChangeEvent to all registered listeners.
public  voidsetSeriesRenderingOrder(SeriesRenderingOrder order)
     Sets the series order and sends a PlotChangeEvent to all registered listeners.
public  voidsetWeight(int weight)
     Sets the weight for the plot and sends a PlotChangeEvent to all registered listeners.
public  voidzoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source)
     Multiplies the range on the domain axis/axes by the specified factor.
public  voidzoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)
     Zooms in on the domain axis/axes.
public  voidzoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source)
     Multiplies the range on the range axis/axes by the specified factor.
public  voidzoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)
     Zooms in on the range axes.

Field Detail
DEFAULT_CROSSHAIR_PAINT
final public static Paint DEFAULT_CROSSHAIR_PAINT(Code)
The default crosshair paint.



DEFAULT_CROSSHAIR_STROKE
final public static Stroke DEFAULT_CROSSHAIR_STROKE(Code)
The default crosshair stroke.



DEFAULT_CROSSHAIR_VISIBLE
final public static boolean DEFAULT_CROSSHAIR_VISIBLE(Code)
The default crosshair visibility.



DEFAULT_GRIDLINE_PAINT
final public static Paint DEFAULT_GRIDLINE_PAINT(Code)
The default grid line paint.



DEFAULT_GRIDLINE_STROKE
final public static Stroke DEFAULT_GRIDLINE_STROKE(Code)
The default grid line stroke.



localizationResources
protected static ResourceBundle localizationResources(Code)
The resourceBundle for the localization.




Constructor Detail
XYPlot
public XYPlot()(Code)
Creates a new XYPlot instance with no dataset, no axes and no renderer. You should specify these items before using the plot.



XYPlot
public XYPlot(XYDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, XYItemRenderer renderer)(Code)
Creates a new plot with the specified dataset, axes and renderer. Any of the arguments can be null, but in that case you should take care to specify the value before using the plot (otherwise a NullPointerException may be thrown).
Parameters:
  dataset - the dataset (null permitted).
Parameters:
  domainAxis - the domain axis (null permitted).
Parameters:
  rangeAxis - the range axis (null permitted).
Parameters:
  renderer - the renderer (null permitted).




Method Detail
addAnnotation
public void addAnnotation(XYAnnotation annotation)(Code)
Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  annotation - the annotation (null not permitted).
See Also:   XYPlot.getAnnotations()
See Also:   XYPlot.removeAnnotation(XYAnnotation)



addDomainMarker
public void addDomainMarker(Marker marker)(Code)
Adds a marker for the domain axis and sends a PlotChangeEvent to all registered listeners.

Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
Parameters:
  marker - the marker (null not permitted).
See Also:   XYPlot.addDomainMarker(Marker,Layer)
See Also:   XYPlot.clearDomainMarkers()




addDomainMarker
public void addDomainMarker(Marker marker, Layer layer)(Code)
Adds a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners.

Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
Parameters:
  marker - the marker (null not permitted).
Parameters:
  layer - the layer (foreground or background).
See Also:   XYPlot.addDomainMarker(int,Marker,Layer)




addDomainMarker
public void addDomainMarker(int index, Marker marker, Layer layer)(Code)
Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners.

Typically a marker will be drawn by the renderer as a line perpendicular to the domain axis (that the renderer is mapped to), however this is entirely up to the renderer.
Parameters:
  index - the dataset/renderer index.
Parameters:
  marker - the marker.
Parameters:
  layer - the layer (foreground or background).
See Also:   XYPlot.clearDomainMarkers(int)
See Also:   XYPlot.addRangeMarker(int,Marker,Layer)




addRangeMarker
public void addRangeMarker(Marker marker)(Code)
Adds a marker for the range axis and sends a PlotChangeEvent to all registered listeners.

Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
Parameters:
  marker - the marker (null not permitted).
See Also:   XYPlot.addRangeMarker(Marker,Layer)




addRangeMarker
public void addRangeMarker(Marker marker, Layer layer)(Code)
Adds a marker for the range axis in the specified layer and sends a PlotChangeEvent to all registered listeners.

Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
Parameters:
  marker - the marker (null not permitted).
Parameters:
  layer - the layer (foreground or background).
See Also:   XYPlot.addRangeMarker(int,Marker,Layer)




addRangeMarker
public void addRangeMarker(int index, Marker marker, Layer layer)(Code)
Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners.

Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
Parameters:
  index - the dataset/renderer index.
Parameters:
  marker - the marker.
Parameters:
  layer - the layer (foreground or background).
See Also:   XYPlot.clearRangeMarkers(int)
See Also:   XYPlot.addDomainMarker(int,Marker,Layer)




calculateAxisSpace
protected AxisSpace calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea)(Code)
Calculates the space required for all the axes in the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area. The required space.



calculateDomainAxisSpace
protected AxisSpace calculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space)(Code)
Calculates the space required for the domain axis/axes.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  space - a carrier for the result (null permitted). The required space.



calculateRangeAxisSpace
protected AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, AxisSpace space)(Code)
Calculates the space required for the range axis/axes.
Parameters:
  g2 - the graphics device.
Parameters:
  plotArea - the plot area.
Parameters:
  space - a carrier for the result (null permitted). The required space.



clearAnnotations
public void clearAnnotations()(Code)
Clears all the annotations and sends a PlotChangeEvent to all registered listeners.
See Also:   XYPlot.addAnnotation(XYAnnotation)



clearDomainAxes
public void clearDomainAxes()(Code)
Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.
See Also:   XYPlot.clearRangeAxes()



clearDomainMarkers
public void clearDomainMarkers()(Code)
Clears all the (foreground and background) domain markers and sends a PlotChangeEvent to all registered listeners.
See Also:   XYPlot.addDomainMarker(int,Marker,Layer)



clearDomainMarkers
public void clearDomainMarkers(int index)(Code)
Clears the (foreground and background) domain markers for a particular renderer.
Parameters:
  index - the renderer index.
See Also:   XYPlot.clearRangeMarkers(int)



clearRangeAxes
public void clearRangeAxes()(Code)
Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners.
See Also:   XYPlot.clearDomainAxes()



clearRangeMarkers
public void clearRangeMarkers()(Code)
Clears all the range markers and sends a PlotChangeEvent to all registered listeners.
See Also:   XYPlot.clearRangeMarkers()



clearRangeMarkers
public void clearRangeMarkers(int index)(Code)
Clears the (foreground and background) range markers for a particular renderer.
Parameters:
  index - the renderer index.



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the plot. A clone.
throws:
  CloneNotSupportedException - this can occur if some component ofthe plot cannot be cloned.



configureDomainAxes
public void configureDomainAxes()(Code)
Configures the domain axes.



configureRangeAxes
public void configureRangeAxes()(Code)
Configures the range axes.
See Also:   XYPlot.configureDomainAxes()



datasetChanged
public void datasetChanged(DatasetChangeEvent event)(Code)
Receives notification of a change to the plot's dataset.

The axis ranges are updated if necessary.
Parameters:
  event - information about the event (not used here).




draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)
Draws the plot within the specified area on a graphics device.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the plot area (in Java2D space).
Parameters:
  anchor - an anchor point in Java2D space (nullpermitted).
Parameters:
  parentState - the state from the parent plot, if there is one(null permitted).
Parameters:
  info - collects chart drawing information (nullpermitted).



drawAnnotations
public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info)(Code)
Draws the annotations for the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  info - the chart rendering info.



drawAxes
protected Map drawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, PlotRenderingInfo plotState)(Code)
A utility method for drawing the axes.
Parameters:
  g2 - the graphics device (null not permitted).
Parameters:
  plotArea - the plot area (null not permitted).
Parameters:
  dataArea - the data area (null not permitted).
Parameters:
  plotState - collects information about the plot (nullpermitted). A map containing the state for each axis drawn.



drawBackground
public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)
Draws the background for the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area.



drawDomainCrosshair
protected void drawDomainCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint)(Code)
Draws a domain crosshair.
Parameters:
  g2 - the graphics target.
Parameters:
  dataArea - the data area.
Parameters:
  orientation - the plot orientation.
Parameters:
  value - the crosshair value.
Parameters:
  axis - the axis against which the value is measured.
Parameters:
  stroke - the stroke used to draw the crosshair line.
Parameters:
  paint - the paint used to draw the crosshair line.
since:
   1.0.4



drawDomainGridlines
protected void drawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks)(Code)
Draws the gridlines for the plot, if they are visible.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  ticks - the ticks.



drawDomainMarkers
protected void drawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer)(Code)
Draws the domain markers (if any) for an axis and layer. This method is typically called from within the draw() method.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  index - the renderer index.
Parameters:
  layer - the layer (foreground or background).



drawDomainTickBands
public void drawDomainTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks)(Code)
Draws the domain tick bands, if any.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  ticks - the ticks.
See Also:   XYPlot.setDomainTickBandPaint(Paint)



drawHorizontalLine
protected void drawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)(Code)
Utility method for drawing a horizontal line across the data area of the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  value - the coordinate, where to draw the line.
Parameters:
  stroke - the stroke to use.
Parameters:
  paint - the paint to use.



drawQuadrants
protected void drawQuadrants(Graphics2D g2, Rectangle2D area)(Code)
Draws the quadrants.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area.
See Also:   XYPlot.setQuadrantOrigin(Point2D)
See Also:   XYPlot.setQuadrantPaint(int,Paint)



drawRangeCrosshair
protected void drawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint)(Code)
Draws a range crosshair.
Parameters:
  g2 - the graphics target.
Parameters:
  dataArea - the data area.
Parameters:
  orientation - the plot orientation.
Parameters:
  value - the crosshair value.
Parameters:
  axis - the axis against which the value is measured.
Parameters:
  stroke - the stroke used to draw the crosshair line.
Parameters:
  paint - the paint used to draw the crosshair line.
since:
   1.0.4



drawRangeGridlines
protected void drawRangeGridlines(Graphics2D g2, Rectangle2D area, List ticks)(Code)
Draws the gridlines for the plot's primary range axis, if they are visible.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the data area.
Parameters:
  ticks - the ticks.



drawRangeMarkers
protected void drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, Layer layer)(Code)
Draws the range markers (if any) for a renderer and layer. This method is typically called from within the draw() method.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  index - the renderer index.
Parameters:
  layer - the layer (foreground or background).



drawRangeTickBands
public void drawRangeTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks)(Code)
Draws the range tick bands, if any.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  ticks - the ticks.
See Also:   XYPlot.setRangeTickBandPaint(Paint)



drawVerticalLine
protected void drawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)(Code)
Utility method for drawing a vertical line on the data area of the plot.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the data area.
Parameters:
  value - the coordinate, where to draw the line.
Parameters:
  stroke - the stroke to use.
Parameters:
  paint - the paint to use.



drawZeroDomainBaseline
protected void drawZeroDomainBaseline(Graphics2D g2, Rectangle2D area)(Code)
Draws a base line across the chart at value zero on the domain axis.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the data area.
See Also:   XYPlot.setDomainZeroBaselineVisible(boolean)
since:
   1.0.5



drawZeroRangeBaseline
protected void drawZeroRangeBaseline(Graphics2D g2, Rectangle2D area)(Code)
Draws a base line across the chart at value zero on the range axis.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the data area.
See Also:   XYPlot.setRangeZeroBaselineVisible(boolean)



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



getAnnotations
public List getAnnotations()(Code)
Returns the list of annotations. The list of annotations.
since:
   1.0.1
See Also:   XYPlot.addAnnotation(XYAnnotation)



getAxisOffset
public RectangleInsets getAxisOffset()(Code)
Returns the axis offset. The axis offset (never null).
See Also:   XYPlot.setAxisOffset(RectangleInsets)



getDataRange
public Range getDataRange(ValueAxis axis)(Code)
Returns the range for the specified axis.
Parameters:
  axis - the axis. The range.



getDataset
public XYDataset getDataset()(Code)
Returns the primary dataset for the plot. The primary dataset (possibly null).
See Also:   XYPlot.getDataset(int)
See Also:   XYPlot.setDataset(XYDataset)



getDataset
public XYDataset getDataset(int index)(Code)
Returns a dataset.
Parameters:
  index - the dataset index. The dataset (possibly null).
See Also:   XYPlot.setDataset(int,XYDataset)



getDatasetCount
public int getDatasetCount()(Code)
Returns the number of datasets. The number of datasets.



getDatasetRenderingOrder
public DatasetRenderingOrder getDatasetRenderingOrder()(Code)
Returns the dataset rendering order. The order (never null).
See Also:   XYPlot.setDatasetRenderingOrder(DatasetRenderingOrder)



getDomainAxis
public ValueAxis getDomainAxis()(Code)
Returns the domain axis with index 0. If the domain axis for this plot is null, then the method will return the parent plot's domain axis (if there is a parent plot). The domain axis (possibly null).
See Also:   XYPlot.getDomainAxis(int)
See Also:   XYPlot.setDomainAxis(ValueAxis)



getDomainAxis
public ValueAxis getDomainAxis(int index)(Code)
Returns the domain axis with the specified index, or null.
Parameters:
  index - the axis index. The axis (null possible).
See Also:   XYPlot.setDomainAxis(int,ValueAxis)



getDomainAxisCount
public int getDomainAxisCount()(Code)
Returns the number of domain axes. The axis count.
See Also:   XYPlot.getRangeAxisCount()



getDomainAxisEdge
public RectangleEdge getDomainAxisEdge()(Code)
Returns the edge for the primary domain axis (taking into account the plot's orientation). The edge.
See Also:   XYPlot.getDomainAxisLocation()
See Also:   XYPlot.getOrientation()



getDomainAxisEdge
public RectangleEdge getDomainAxisEdge(int index)(Code)
Returns the edge for a domain axis.
Parameters:
  index - the axis index. The edge.
See Also:   XYPlot.getRangeAxisEdge(int)



getDomainAxisForDataset
public ValueAxis getDomainAxisForDataset(int index)(Code)
Returns the domain axis for a dataset.
Parameters:
  index - the dataset index. The axis.



getDomainAxisIndex
public int getDomainAxisIndex(ValueAxis axis)(Code)
Returns the index of the given domain axis.
Parameters:
  axis - the axis. The axis index.
See Also:   XYPlot.getRangeAxisIndex(ValueAxis)



getDomainAxisLocation
public AxisLocation getDomainAxisLocation()(Code)
Returns the location of the primary domain axis. The location (never null).
See Also:   XYPlot.setDomainAxisLocation(AxisLocation)



getDomainAxisLocation
public AxisLocation getDomainAxisLocation(int index)(Code)
Returns the location for a domain axis. If this hasn't been set explicitly, the method returns the location that is opposite to the primary domain axis location.
Parameters:
  index - the axis index. The location (never null).
See Also:   XYPlot.setDomainAxisLocation(int,AxisLocation)



getDomainCrosshairPaint
public Paint getDomainCrosshairPaint()(Code)
Returns the domain crosshair paint. The crosshair paint (never null).
See Also:   XYPlot.setDomainCrosshairPaint(Paint)
See Also:   XYPlot.isDomainCrosshairVisible()
See Also:   XYPlot.getDomainCrosshairStroke()



getDomainCrosshairStroke
public Stroke getDomainCrosshairStroke()(Code)
Returns the Stroke used to draw the crosshair (if visible). The crosshair stroke (never null).
See Also:   XYPlot.setDomainCrosshairStroke(Stroke)
See Also:   XYPlot.isDomainCrosshairVisible()
See Also:   XYPlot.getDomainCrosshairPaint()



getDomainCrosshairValue
public double getDomainCrosshairValue()(Code)
Returns the domain crosshair value. The value.
See Also:   XYPlot.setDomainCrosshairValue(double)



getDomainGridlinePaint
public Paint getDomainGridlinePaint()(Code)
Returns the paint for the grid lines (if any) plotted against the domain axis. The paint (never null).
See Also:   XYPlot.setDomainGridlinePaint(Paint)



getDomainGridlineStroke
public Stroke getDomainGridlineStroke()(Code)
Returns the stroke for the grid-lines (if any) plotted against the domain axis. The stroke (never null).
See Also:   XYPlot.setDomainGridlineStroke(Stroke)



getDomainMarkers
public Collection getDomainMarkers(Layer layer)(Code)
Returns the list of domain markers (read only) for the specified layer.
Parameters:
  layer - the layer (foreground or background). The list of domain markers.
See Also:   XYPlot.getRangeMarkers(Layer)



getDomainMarkers
public Collection getDomainMarkers(int index, Layer layer)(Code)
Returns a collection of domain markers for a particular renderer and layer.
Parameters:
  index - the renderer index.
Parameters:
  layer - the layer. A collection of markers (possibly null).
See Also:   XYPlot.getRangeMarkers(int,Layer)



getDomainTickBandPaint
public Paint getDomainTickBandPaint()(Code)
Returns the paint used for the domain tick bands. If this is null, no tick bands will be drawn. The paint (possibly null).
See Also:   XYPlot.setDomainTickBandPaint(Paint)



getDomainZeroBaselinePaint
public Paint getDomainZeroBaselinePaint()(Code)
Returns the paint for the zero baseline (if any) plotted against the domain axis.
since:
   1.0.5 The paint (never null).
See Also:   XYPlot.setDomainZeroBaselinePaint(Paint)



getDomainZeroBaselineStroke
public Stroke getDomainZeroBaselineStroke()(Code)
Returns the stroke used for the zero baseline against the domain axis. The stroke (never null).
since:
   1.0.5
See Also:   XYPlot.setDomainZeroBaselineStroke(Stroke)



getFixedDomainAxisSpace
public AxisSpace getFixedDomainAxisSpace()(Code)
Returns the fixed domain axis space. The fixed domain axis space (possibly null).
See Also:   XYPlot.setFixedDomainAxisSpace(AxisSpace)



getFixedLegendItems
public LegendItemCollection getFixedLegendItems()(Code)
Returns the fixed legend items, if any. The legend items (possibly null).
See Also:   XYPlot.setFixedLegendItems(LegendItemCollection)



getFixedRangeAxisSpace
public AxisSpace getFixedRangeAxisSpace()(Code)
Returns the fixed range axis space. The fixed range axis space (possibly null).
See Also:   XYPlot.setFixedRangeAxisSpace(AxisSpace)



getIndexOf
public int getIndexOf(XYItemRenderer renderer)(Code)
Returns the index of the specified renderer, or -1 if the renderer is not assigned to this plot.
Parameters:
  renderer - the renderer (null permitted). The renderer index.



getLegendItems
public LegendItemCollection getLegendItems()(Code)
Returns the legend items for the plot. Each legend item is generated by the plot's renderer, since the renderer is responsible for the visual representation of the data. The legend items.



getOrientation
public PlotOrientation getOrientation()(Code)
Returns the orientation of the plot. The orientation (never null).
See Also:   XYPlot.setOrientation(PlotOrientation)



getPlotType
public String getPlotType()(Code)
Returns the plot type as a string. A short string describing the type of plot.



getQuadrantOrigin
public Point2D getQuadrantOrigin()(Code)
Returns the origin for the quadrants that can be displayed on the plot. This defaults to (0, 0). The origin point (never null).
See Also:   XYPlot.setQuadrantOrigin(Point2D)



getQuadrantPaint
public Paint getQuadrantPaint(int index)(Code)
Returns the paint used for the specified quadrant.
Parameters:
  index - the quadrant index (0-3). The paint (possibly null).
See Also:   XYPlot.setQuadrantPaint(int,Paint)



getRangeAxis
public ValueAxis getRangeAxis()(Code)
Returns the range axis for the plot. If the range axis for this plot is null, then the method will return the parent plot's range axis (if there is a parent plot). The range axis.
See Also:   XYPlot.getRangeAxis(int)
See Also:   XYPlot.setRangeAxis(ValueAxis)



getRangeAxis
public ValueAxis getRangeAxis(int index)(Code)
Returns a range axis.
Parameters:
  index - the axis index. The axis (null possible).
See Also:   XYPlot.setRangeAxis(int,ValueAxis)



getRangeAxisCount
public int getRangeAxisCount()(Code)
Returns the number of range axes. The axis count.
See Also:   XYPlot.getDomainAxisCount()



getRangeAxisEdge
public RectangleEdge getRangeAxisEdge()(Code)
Returns the edge for the primary range axis. The range axis edge.
See Also:   XYPlot.getRangeAxisLocation()
See Also:   XYPlot.getOrientation()



getRangeAxisEdge
public RectangleEdge getRangeAxisEdge(int index)(Code)
Returns the edge for a range axis.
Parameters:
  index - the axis index. The edge.
See Also:   XYPlot.getRangeAxisLocation(int)
See Also:   XYPlot.getOrientation()



getRangeAxisForDataset
public ValueAxis getRangeAxisForDataset(int index)(Code)
Returns the range axis for a dataset.
Parameters:
  index - the dataset index. The axis.



getRangeAxisIndex
public int getRangeAxisIndex(ValueAxis axis)(Code)
Returns the index of the given range axis.
Parameters:
  axis - the axis. The axis index.
See Also:   XYPlot.getDomainAxisIndex(ValueAxis)



getRangeAxisLocation
public AxisLocation getRangeAxisLocation()(Code)
Returns the location of the primary range axis. The location (never null).
See Also:   XYPlot.setRangeAxisLocation(AxisLocation)



getRangeAxisLocation
public AxisLocation getRangeAxisLocation(int index)(Code)
Returns the location for a range axis. If this hasn't been set explicitly, the method returns the location that is opposite to the primary range axis location.
Parameters:
  index - the axis index. The location (never null).
See Also:   XYPlot.setRangeAxisLocation(int,AxisLocation)



getRangeCrosshairPaint
public Paint getRangeCrosshairPaint()(Code)
Returns the range crosshair paint. The crosshair paint (never null).
See Also:   XYPlot.setRangeCrosshairPaint(Paint)
See Also:   XYPlot.isRangeCrosshairVisible()
See Also:   XYPlot.getRangeCrosshairStroke()



getRangeCrosshairStroke
public Stroke getRangeCrosshairStroke()(Code)
Returns the stroke used to draw the crosshair (if visible). The crosshair stroke (never null).
See Also:   XYPlot.setRangeCrosshairStroke(Stroke)
See Also:   XYPlot.isRangeCrosshairVisible()
See Also:   XYPlot.getRangeCrosshairPaint()



getRangeCrosshairValue
public double getRangeCrosshairValue()(Code)
Returns the range crosshair value. The value.
See Also:   XYPlot.setRangeCrosshairValue(double)



getRangeGridlinePaint
public Paint getRangeGridlinePaint()(Code)
Returns the paint for the grid lines (if any) plotted against the range axis. The paint (never null).
See Also:   XYPlot.setRangeGridlinePaint(Paint)



getRangeGridlineStroke
public Stroke getRangeGridlineStroke()(Code)
Returns the stroke for the grid lines (if any) plotted against the range axis. The stroke (never null).
See Also:   XYPlot.setRangeGridlineStroke(Stroke)



getRangeMarkers
public Collection getRangeMarkers(Layer layer)(Code)
Returns the list of range markers (read only) for the specified layer.
Parameters:
  layer - the layer (foreground or background). The list of range markers.
See Also:   XYPlot.getDomainMarkers(Layer)



getRangeMarkers
public Collection getRangeMarkers(int index, Layer layer)(Code)
Returns a collection of range markers for a particular renderer and layer.
Parameters:
  index - the renderer index.
Parameters:
  layer - the layer. A collection of markers (possibly null).
See Also:   XYPlot.getDomainMarkers(int,Layer)



getRangeTickBandPaint
public Paint getRangeTickBandPaint()(Code)
Returns the paint used for the range tick bands. If this is null, no tick bands will be drawn. The paint (possibly null).
See Also:   XYPlot.setRangeTickBandPaint(Paint)



getRangeZeroBaselinePaint
public Paint getRangeZeroBaselinePaint()(Code)
Returns the paint for the zero baseline (if any) plotted against the range axis. The paint (never null).
See Also:   XYPlot.setRangeZeroBaselinePaint(Paint)



getRangeZeroBaselineStroke
public Stroke getRangeZeroBaselineStroke()(Code)
Returns the stroke used for the zero baseline against the range axis. The stroke (never null).
See Also:   XYPlot.setRangeZeroBaselineStroke(Stroke)



getRenderer
public XYItemRenderer getRenderer()(Code)
Returns the renderer for the primary dataset. The item renderer (possibly null).
See Also:   XYPlot.setRenderer(XYItemRenderer)



getRenderer
public XYItemRenderer getRenderer(int index)(Code)
Returns the renderer for a dataset, or null.
Parameters:
  index - the renderer index. The renderer (possibly null).
See Also:   XYPlot.setRenderer(int,XYItemRenderer)



getRendererForDataset
public XYItemRenderer getRendererForDataset(XYDataset dataset)(Code)
Returns the renderer for the specified dataset. The code first determines the index of the dataset, then checks if there is a renderer with the same index (if not, the method returns renderer(0).
Parameters:
  dataset - the dataset (null permitted). The renderer (possibly null).



getSeriesCount
public int getSeriesCount()(Code)
Returns the number of series in the primary dataset for this plot. If the dataset is null, the method returns 0. The series count.



getSeriesRenderingOrder
public SeriesRenderingOrder getSeriesRenderingOrder()(Code)
Returns the series rendering order. the order (never null).
See Also:   XYPlot.setSeriesRenderingOrder(SeriesRenderingOrder)



getWeight
public int getWeight()(Code)
Returns the weight for this plot when it is used as a subplot within a combined plot. The weight.
See Also:   XYPlot.setWeight(int)



handleClick
public void handleClick(int x, int y, PlotRenderingInfo info)(Code)
Handles a 'click' on the plot by updating the anchor values.
Parameters:
  x - the x-coordinate, where the click occurred, in Java2D space.
Parameters:
  y - the y-coordinate, where the click occurred, in Java2D space.
Parameters:
  info - object containing information about the plot dimensions.



indexOf
public int indexOf(XYDataset dataset)(Code)
Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot.
Parameters:
  dataset - the dataset (null not permitted). The index.



isDomainCrosshairLockedOnData
public boolean isDomainCrosshairLockedOnData()(Code)
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values. The flag.
See Also:   XYPlot.setDomainCrosshairLockedOnData(boolean)



isDomainCrosshairVisible
public boolean isDomainCrosshairVisible()(Code)
Returns a flag indicating whether or not the domain crosshair is visible. The flag.
See Also:   XYPlot.setDomainCrosshairVisible(boolean)



isDomainGridlinesVisible
public boolean isDomainGridlinesVisible()(Code)
Returns true if the domain gridlines are visible, and false otherwise. true or false.
See Also:   XYPlot.setDomainGridlinesVisible(boolean)



isDomainZeroBaselineVisible
public boolean isDomainZeroBaselineVisible()(Code)
Returns a flag that controls whether or not a zero baseline is displayed for the domain axis. A boolean.
since:
   1.0.5
See Also:   XYPlot.setDomainZeroBaselineVisible(boolean)



isDomainZoomable
public boolean isDomainZoomable()(Code)
Returns true, indicating that the domain axis/axes for this plot are zoomable. A boolean.
See Also:   XYPlot.isRangeZoomable()



isRangeCrosshairLockedOnData
public boolean isRangeCrosshairLockedOnData()(Code)
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values. The flag.
See Also:   XYPlot.setRangeCrosshairLockedOnData(boolean)



isRangeCrosshairVisible
public boolean isRangeCrosshairVisible()(Code)
Returns a flag indicating whether or not the range crosshair is visible. The flag.
See Also:   XYPlot.setRangeCrosshairVisible(boolean)
See Also:   XYPlot.isDomainCrosshairVisible()



isRangeGridlinesVisible
public boolean isRangeGridlinesVisible()(Code)
Returns true if the range axis grid is visible, and false otherwise. A boolean.
See Also:   XYPlot.setRangeGridlinesVisible(boolean)



isRangeZeroBaselineVisible
public boolean isRangeZeroBaselineVisible()(Code)
Returns a flag that controls whether or not a zero baseline is displayed for the range axis. A boolean.
See Also:   XYPlot.setRangeZeroBaselineVisible(boolean)



isRangeZoomable
public boolean isRangeZoomable()(Code)
Returns true, indicating that the range axis/axes for this plot are zoomable. A boolean.
See Also:   XYPlot.isDomainZoomable()



mapDatasetToDomainAxis
public void mapDatasetToDomainAxis(int index, int axisIndex)(Code)
Maps a dataset to a particular domain axis. All data will be plotted against axis zero by default, no mapping is required for this case.
Parameters:
  index - the dataset index (zero-based).
Parameters:
  axisIndex - the axis index.
See Also:   XYPlot.mapDatasetToRangeAxis(int,int)



mapDatasetToRangeAxis
public void mapDatasetToRangeAxis(int index, int axisIndex)(Code)
Maps a dataset to a particular range axis. All data will be plotted against axis zero by default, no mapping is required for this case.
Parameters:
  index - the dataset index (zero-based).
Parameters:
  axisIndex - the axis index.
See Also:   XYPlot.mapDatasetToDomainAxis(int,int)



removeAnnotation
public boolean removeAnnotation(XYAnnotation annotation)(Code)
Removes an annotation from the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  annotation - the annotation (null not permitted). A boolean (indicates whether or not the annotation was removed).
See Also:   XYPlot.addAnnotation(XYAnnotation)
See Also:   XYPlot.getAnnotations()



render
public boolean render(Graphics2D g2, Rectangle2D dataArea, int index, PlotRenderingInfo info, CrosshairState crosshairState)(Code)
Draws a representation of the data within the dataArea region, using the current renderer.

The info and crosshairState arguments may be null.
Parameters:
  g2 - the graphics device.
Parameters:
  dataArea - the region in which the data is to be drawn.
Parameters:
  index - the dataset index.
Parameters:
  info - an optional object for collection dimension information.
Parameters:
  crosshairState - collects crosshair information(null permitted). A flag that indicates whether any data was actually rendered.




rendererChanged
public void rendererChanged(RendererChangeEvent event)(Code)
Receives notification of a renderer change event.
Parameters:
  event - the event.



setAxisOffset
public void setAxisOffset(RectangleInsets offset)(Code)
Sets the axis offsets (gap between the data area and the axes) and sends a PlotChangeEvent to all registered listeners.
Parameters:
  offset - the offset (null not permitted).
See Also:   XYPlot.getAxisOffset()



setDataset
public void setDataset(XYDataset dataset)(Code)
Sets the primary dataset for the plot, replacing the existing dataset if there is one.
Parameters:
  dataset - the dataset (null permitted).
See Also:   XYPlot.getDataset()
See Also:   XYPlot.setDataset(int,XYDataset)



setDataset
public void setDataset(int index, XYDataset dataset)(Code)
Sets a dataset for the plot.
Parameters:
  index - the dataset index.
Parameters:
  dataset - the dataset (null permitted).
See Also:   XYPlot.getDataset(int)



setDatasetRenderingOrder
public void setDatasetRenderingOrder(DatasetRenderingOrder order)(Code)
Sets the rendering order and sends a PlotChangeEvent to all registered listeners. By default, the plot renders the primary dataset last (so that the primary dataset overlays the secondary datasets). You can reverse this if you want to.
Parameters:
  order - the rendering order (null not permitted).
See Also:   XYPlot.getDatasetRenderingOrder()



setDomainAxes
public void setDomainAxes(ValueAxis[] axes)(Code)
Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  axes - the axes (null not permitted).
See Also:   XYPlot.setRangeAxes(ValueAxis[])



setDomainAxis
public void setDomainAxis(ValueAxis axis)(Code)
Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  axis - the new axis (null permitted).
See Also:   XYPlot.getDomainAxis()
See Also:   XYPlot.setDomainAxis(int,ValueAxis)



setDomainAxis
public void setDomainAxis(int index, ValueAxis axis)(Code)
Sets a domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  axis - the axis (null permitted).
See Also:   XYPlot.getDomainAxis(int)
See Also:   XYPlot.setRangeAxis(int,ValueAxis)



setDomainAxis
public void setDomainAxis(int index, ValueAxis axis, boolean notify)(Code)
Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  axis - the axis.
Parameters:
  notify - notify listeners?
See Also:   XYPlot.getDomainAxis(int)



setDomainAxisLocation
public void setDomainAxisLocation(AxisLocation location)(Code)
Sets the location of the primary domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  location - the location (null not permitted).
See Also:   XYPlot.getDomainAxisLocation()



setDomainAxisLocation
public void setDomainAxisLocation(AxisLocation location, boolean notify)(Code)
Sets the location of the domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  location - the location (null not permitted).
Parameters:
  notify - notify listeners?
See Also:   XYPlot.getDomainAxisLocation()



setDomainAxisLocation
public void setDomainAxisLocation(int index, AxisLocation location)(Code)
Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  location - the location (null not permitted for index0).
See Also:   XYPlot.getDomainAxisLocation(int)



setDomainAxisLocation
public void setDomainAxisLocation(int index, AxisLocation location, boolean notify)(Code)
Sets the axis location for a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  location - the location (null not permitted for index 0).
Parameters:
  notify - notify listeners?
since:
   1.0.5
See Also:   XYPlot.getDomainAxisLocation(int)
See Also:   XYPlot.setRangeAxisLocation(int,AxisLocation,boolean)



setDomainCrosshairLockedOnData
public void setDomainCrosshairLockedOnData(boolean flag)(Code)
Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values. If the flag value changes, this method sends a PlotChangeEvent to all registered listeners.
Parameters:
  flag - the flag.
See Also:   XYPlot.isDomainCrosshairLockedOnData()



setDomainCrosshairPaint
public void setDomainCrosshairPaint(Paint paint)(Code)
Sets the paint used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the new crosshair paint (null not permitted).
See Also:   XYPlot.getDomainCrosshairPaint()



setDomainCrosshairStroke
public void setDomainCrosshairStroke(Stroke stroke)(Code)
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
Parameters:
  stroke - the new crosshair stroke (null not permitted).
See Also:   XYPlot.getDomainCrosshairStroke()



setDomainCrosshairValue
public void setDomainCrosshairValue(double value)(Code)
Sets the domain crosshair value and sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
Parameters:
  value - the value.
See Also:   XYPlot.getDomainCrosshairValue()



setDomainCrosshairValue
public void setDomainCrosshairValue(double value, boolean notify)(Code)
Sets the domain crosshair value and, if requested, sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
Parameters:
  value - the new value.
Parameters:
  notify - notify listeners?
See Also:   XYPlot.getDomainCrosshairValue()



setDomainCrosshairVisible
public void setDomainCrosshairVisible(boolean flag)(Code)
Sets the flag indicating whether or not the domain crosshair is visible and, if the flag changes, sends a PlotChangeEvent to all registered listeners.
Parameters:
  flag - the new value of the flag.
See Also:   XYPlot.isDomainCrosshairVisible()



setDomainGridlinePaint
public void setDomainGridlinePaint(Paint paint)(Code)
Sets the paint for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
throws:
  IllegalArgumentException - if paint is null.
See Also:   XYPlot.getDomainGridlinePaint()



setDomainGridlineStroke
public void setDomainGridlineStroke(Stroke stroke)(Code)
Sets the stroke for the grid lines plotted against the domain axis, and sends a PlotChangeEvent to all registered listeners.

If you set this to null, no grid lines will be drawn.
Parameters:
  stroke - the stroke (null not permitted).
throws:
  IllegalArgumentException - if stroke is null.
See Also:   XYPlot.getDomainGridlineStroke()




setDomainGridlinesVisible
public void setDomainGridlinesVisible(boolean visible)(Code)
Sets the flag that controls whether or not the domain grid-lines are visible.

If the flag value is changed, a PlotChangeEvent is sent to all registered listeners.
Parameters:
  visible - the new value of the flag.
See Also:   XYPlot.isDomainGridlinesVisible()




setDomainTickBandPaint
public void setDomainTickBandPaint(Paint paint)(Code)
Sets the paint for the domain tick bands.
Parameters:
  paint - the paint (null permitted).
See Also:   XYPlot.getDomainTickBandPaint()



setDomainZeroBaselinePaint
public void setDomainZeroBaselinePaint(Paint paint)(Code)
Sets the paint for the zero baseline plotted against the domain axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
since:
   1.0.5
See Also:   XYPlot.getDomainZeroBaselinePaint()



setDomainZeroBaselineStroke
public void setDomainZeroBaselineStroke(Stroke stroke)(Code)
Sets the stroke for the zero baseline for the domain axis, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
since:
   1.0.5
See Also:   XYPlot.getRangeZeroBaselineStroke()



setDomainZeroBaselineVisible
public void setDomainZeroBaselineVisible(boolean visible)(Code)
Sets the flag that controls whether or not the zero baseline is displayed for the domain axis, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
since:
   1.0.5
See Also:   XYPlot.isDomainZeroBaselineVisible()



setFixedDomainAxisSpace
public void setFixedDomainAxisSpace(AxisSpace space)(Code)
Sets the fixed domain axis space.
Parameters:
  space - the space (null permitted).
See Also:   XYPlot.getFixedDomainAxisSpace()



setFixedLegendItems
public void setFixedLegendItems(LegendItemCollection items)(Code)
Sets the fixed legend items for the plot. Leave this set to null if you prefer the legend items to be created automatically.
Parameters:
  items - the legend items (null permitted).
See Also:   XYPlot.getFixedLegendItems()



setFixedRangeAxisSpace
public void setFixedRangeAxisSpace(AxisSpace space)(Code)
Sets the fixed range axis space.
Parameters:
  space - the space (null permitted).
See Also:   XYPlot.getFixedRangeAxisSpace()



setOrientation
public void setOrientation(PlotOrientation orientation)(Code)
Sets the orientation for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  orientation - the orientation (null not allowed).
See Also:   XYPlot.getOrientation()



setQuadrantOrigin
public void setQuadrantOrigin(Point2D origin)(Code)
Sets the quadrant origin and sends a PlotChangeEvent to all registered listeners.
Parameters:
  origin - the origin (null not permitted).
See Also:   XYPlot.getQuadrantOrigin()



setQuadrantPaint
public void setQuadrantPaint(int index, Paint paint)(Code)
Sets the paint used for the specified quadrant and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the quadrant index (0-3).
Parameters:
  paint - the paint (null permitted).
See Also:   XYPlot.getQuadrantPaint(int)



setRangeAxes
public void setRangeAxes(ValueAxis[] axes)(Code)
Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  axes - the axes (null not permitted).
See Also:   XYPlot.setDomainAxes(ValueAxis[])



setRangeAxis
public void setRangeAxis(ValueAxis axis)(Code)
Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  axis - the axis (null permitted).
See Also:   XYPlot.getRangeAxis()
See Also:   XYPlot.setRangeAxis(int,ValueAxis)



setRangeAxis
public void setRangeAxis(int index, ValueAxis axis)(Code)
Sets a range axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  axis - the axis (null permitted).
See Also:   XYPlot.getRangeAxis(int)



setRangeAxis
public void setRangeAxis(int index, ValueAxis axis, boolean notify)(Code)
Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  axis - the axis (null permitted).
Parameters:
  notify - notify listeners?
See Also:   XYPlot.getRangeAxis(int)



setRangeAxisLocation
public void setRangeAxisLocation(AxisLocation location)(Code)
Sets the location of the primary range axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  location - the location (null not permitted).
See Also:   XYPlot.getRangeAxisLocation()



setRangeAxisLocation
public void setRangeAxisLocation(AxisLocation location, boolean notify)(Code)
Sets the location of the primary range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  location - the location (null not permitted).
Parameters:
  notify - notify listeners?
See Also:   XYPlot.getRangeAxisLocation()



setRangeAxisLocation
public void setRangeAxisLocation(int index, AxisLocation location)(Code)
Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  location - the location (null permitted).
See Also:   XYPlot.getRangeAxisLocation(int)



setRangeAxisLocation
public void setRangeAxisLocation(int index, AxisLocation location, boolean notify)(Code)
Sets the axis location for a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the axis index.
Parameters:
  location - the location (null not permitted for index 0).
Parameters:
  notify - notify listeners?
since:
   1.0.5
See Also:   XYPlot.getRangeAxisLocation(int)
See Also:   XYPlot.setDomainAxisLocation(int,AxisLocation,boolean)



setRangeCrosshairLockedOnData
public void setRangeCrosshairLockedOnData(boolean flag)(Code)
Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values. If the flag value changes, this method sends a PlotChangeEvent to all registered listeners.
Parameters:
  flag - the flag.
See Also:   XYPlot.isRangeCrosshairLockedOnData()



setRangeCrosshairPaint
public void setRangeCrosshairPaint(Paint paint)(Code)
Sets the paint used to color the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the new crosshair paint (null not permitted).
See Also:   XYPlot.getRangeCrosshairPaint()



setRangeCrosshairStroke
public void setRangeCrosshairStroke(Stroke stroke)(Code)
Sets the stroke used to draw the crosshairs (if visible) and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the new crosshair stroke (null not permitted).
See Also:   XYPlot.getRangeCrosshairStroke()



setRangeCrosshairValue
public void setRangeCrosshairValue(double value)(Code)
Sets the range crosshair value.

Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
Parameters:
  value - the new value.
See Also:   XYPlot.getRangeCrosshairValue()




setRangeCrosshairValue
public void setRangeCrosshairValue(double value, boolean notify)(Code)
Sets the range crosshair value and sends a PlotChangeEvent to all registered listeners, but only if the crosshair is visible.
Parameters:
  value - the new value.
Parameters:
  notify - a flag that controls whether or not listeners arenotified.
See Also:   XYPlot.getRangeCrosshairValue()



setRangeCrosshairVisible
public void setRangeCrosshairVisible(boolean flag)(Code)
Sets the flag indicating whether or not the range crosshair is visible. If the flag value changes, this method sends a PlotChangeEvent to all registered listeners.
Parameters:
  flag - the new value of the flag.
See Also:   XYPlot.isRangeCrosshairVisible()



setRangeGridlinePaint
public void setRangeGridlinePaint(Paint paint)(Code)
Sets the paint for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   XYPlot.getRangeGridlinePaint()



setRangeGridlineStroke
public void setRangeGridlineStroke(Stroke stroke)(Code)
Sets the stroke for the grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   XYPlot.getRangeGridlineStroke()



setRangeGridlinesVisible
public void setRangeGridlinesVisible(boolean visible)(Code)
Sets the flag that controls whether or not the range axis grid lines are visible.

If the flag value is changed, a PlotChangeEvent is sent to all registered listeners.
Parameters:
  visible - the new value of the flag.
See Also:   XYPlot.isRangeGridlinesVisible()




setRangeTickBandPaint
public void setRangeTickBandPaint(Paint paint)(Code)
Sets the paint for the range tick bands.
Parameters:
  paint - the paint (null permitted).
See Also:   XYPlot.getRangeTickBandPaint()



setRangeZeroBaselinePaint
public void setRangeZeroBaselinePaint(Paint paint)(Code)
Sets the paint for the zero baseline plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
Parameters:
  paint - the paint (null not permitted).
See Also:   XYPlot.getRangeZeroBaselinePaint()



setRangeZeroBaselineStroke
public void setRangeZeroBaselineStroke(Stroke stroke)(Code)
Sets the stroke for the zero baseline for the range axis, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  stroke - the stroke (null not permitted).
See Also:   XYPlot.getRangeZeroBaselineStroke()



setRangeZeroBaselineVisible
public void setRangeZeroBaselineVisible(boolean visible)(Code)
Sets the flag that controls whether or not the zero baseline is displayed for the range axis, and sends a PlotChangeEvent to all registered listeners.
Parameters:
  visible - the flag.
See Also:   XYPlot.isRangeZeroBaselineVisible()



setRenderer
public void setRenderer(XYItemRenderer renderer)(Code)
Sets the renderer for the primary dataset and sends a PlotChangeEvent to all registered listeners. If the renderer is set to null, no data will be displayed.
Parameters:
  renderer - the renderer (null permitted).
See Also:   XYPlot.getRenderer()



setRenderer
public void setRenderer(int index, XYItemRenderer renderer)(Code)
Sets a renderer and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the index.
Parameters:
  renderer - the renderer.
See Also:   XYPlot.getRenderer(int)



setRenderer
public void setRenderer(int index, XYItemRenderer renderer, boolean notify)(Code)
Sets a renderer and sends a PlotChangeEvent to all registered listeners.
Parameters:
  index - the index.
Parameters:
  renderer - the renderer.
Parameters:
  notify - notify listeners?
See Also:   XYPlot.getRenderer(int)



setRenderers
public void setRenderers(XYItemRenderer[] renderers)(Code)
Sets the renderers for this plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  renderers - the renderers (null not permitted).



setSeriesRenderingOrder
public void setSeriesRenderingOrder(SeriesRenderingOrder order)(Code)
Sets the series order and sends a PlotChangeEvent to all registered listeners. By default, the plot renders the primary series last (so that the primary series appears to be on top). You can reverse this if you want to.
Parameters:
  order - the rendering order (null not permitted).
See Also:   XYPlot.getSeriesRenderingOrder()



setWeight
public void setWeight(int weight)(Code)
Sets the weight for the plot and sends a PlotChangeEvent to all registered listeners.
Parameters:
  weight - the weight.
See Also:   XYPlot.getWeight()



zoomDomainAxes
public void zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source)(Code)
Multiplies the range on the domain axis/axes by the specified factor.
Parameters:
  factor - the zoom factor.
Parameters:
  info - the plot rendering info.
Parameters:
  source - the source point.



zoomDomainAxes
public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)(Code)
Zooms in on the domain axis/axes. The new lower and upper bounds are specified as percentages of the current axis range, where 0 percent is the current lower bound and 100 percent is the current upper bound.
Parameters:
  lowerPercent - a percentage that determines the new lower boundfor the axis (e.g. 0.20 is twenty percent).
Parameters:
  upperPercent - a percentage that determines the new upper boundfor the axis (e.g. 0.80 is eighty percent).
Parameters:
  info - the plot rendering info.
Parameters:
  source - the source point.



zoomRangeAxes
public void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source)(Code)
Multiplies the range on the range axis/axes by the specified factor.
Parameters:
  factor - the zoom factor.
Parameters:
  info - the plot rendering info.
Parameters:
  source - the source point.



zoomRangeAxes
public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source)(Code)
Zooms in on the range axes.
Parameters:
  lowerPercent - the lower bound.
Parameters:
  upperPercent - the upper bound.
Parameters:
  info - the plot rendering info.
Parameters:
  source - the source point.



Fields inherited from org.jfree.chart.plot.Plot
final public static float DEFAULT_BACKGROUND_ALPHA(Code)(Java Doc)
final public static Paint DEFAULT_BACKGROUND_PAINT(Code)(Java Doc)
final public static float DEFAULT_FOREGROUND_ALPHA(Code)(Java Doc)
final public static RectangleInsets DEFAULT_INSETS(Code)(Java Doc)
final public static Shape DEFAULT_LEGEND_ITEM_BOX(Code)(Java Doc)
final public static Shape DEFAULT_LEGEND_ITEM_CIRCLE(Code)(Java Doc)
final public static Paint DEFAULT_OUTLINE_PAINT(Code)(Java Doc)
final public static Stroke DEFAULT_OUTLINE_STROKE(Code)(Java Doc)
final public static int MINIMUM_HEIGHT_TO_DRAW(Code)(Java Doc)
final public static int MINIMUM_WIDTH_TO_DRAW(Code)(Java Doc)
final public static Number ZERO(Code)(Java Doc)

Methods inherited from org.jfree.chart.plot.Plot
public void addChangeListener(PlotChangeListener listener)(Code)(Java Doc)
public void axisChanged(AxisChangeEvent event)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public void datasetChanged(DatasetChangeEvent event)(Code)(Java Doc)
abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc)
public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)(Java Doc)
public float getBackgroundAlpha()(Code)(Java Doc)
public Image getBackgroundImage()(Code)(Java Doc)
public int getBackgroundImageAlignment()(Code)(Java Doc)
public float getBackgroundImageAlpha()(Code)(Java Doc)
public Paint getBackgroundPaint()(Code)(Java Doc)
public DatasetGroup getDatasetGroup()(Code)(Java Doc)
public DrawingSupplier getDrawingSupplier()(Code)(Java Doc)
public float getForegroundAlpha()(Code)(Java Doc)
public RectangleInsets getInsets()(Code)(Java Doc)
public LegendItemCollection getLegendItems()(Code)(Java Doc)
public String getNoDataMessage()(Code)(Java Doc)
public Font getNoDataMessageFont()(Code)(Java Doc)
public Paint getNoDataMessagePaint()(Code)(Java Doc)
public Paint getOutlinePaint()(Code)(Java Doc)
public Stroke getOutlineStroke()(Code)(Java Doc)
public Plot getParent()(Code)(Java Doc)
abstract public String getPlotType()(Code)(Java Doc)
protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)(Java Doc)
protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)(Java Doc)
public Plot getRootPlot()(Code)(Java Doc)
public void handleClick(int x, int y, PlotRenderingInfo info)(Code)(Java Doc)
public boolean isOutlineVisible()(Code)(Java Doc)
public boolean isSubplot()(Code)(Java Doc)
public void markerChanged(MarkerChangeEvent event)(Code)(Java Doc)
public void notifyListeners(PlotChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(PlotChangeListener listener)(Code)(Java Doc)
public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc)
public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc)
public void setBackgroundAlpha(float alpha)(Code)(Java Doc)
public void setBackgroundImage(Image image)(Code)(Java Doc)
public void setBackgroundImageAlignment(int alignment)(Code)(Java Doc)
public void setBackgroundImageAlpha(float alpha)(Code)(Java Doc)
public void setBackgroundPaint(Paint paint)(Code)(Java Doc)
protected void setDatasetGroup(DatasetGroup group)(Code)(Java Doc)
public void setDrawingSupplier(DrawingSupplier supplier)(Code)(Java Doc)
public void setForegroundAlpha(float alpha)(Code)(Java Doc)
public void setInsets(RectangleInsets insets)(Code)(Java Doc)
public void setInsets(RectangleInsets insets, boolean notify)(Code)(Java Doc)
public void setNoDataMessage(String message)(Code)(Java Doc)
public void setNoDataMessageFont(Font font)(Code)(Java Doc)
public void setNoDataMessagePaint(Paint paint)(Code)(Java Doc)
public void setOutlinePaint(Paint paint)(Code)(Java Doc)
public void setOutlineStroke(Stroke stroke)(Code)(Java Doc)
public void setOutlineVisible(boolean visible)(Code)(Java Doc)
public void setParent(Plot parent)(Code)(Java Doc)
public void zoom(double percent)(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.