Class XYSplineRenderer

All Implemented Interfaces:
Serializable, Cloneable, EventListener, AnnotationChangeListener, LegendItemSource, XYItemRenderer, PublicCloneable

A renderer that connects data points with natural cubic splines and/or draws shapes at each data point. This renderer is designed for use with the XYPlot class. The example shown here is generated by the XYSplineRendererDemo1.java program included in the JFreeChart demo collection:

XYSplineRendererSample.png
See Also:
  • Constructor Details

    • XYSplineRenderer

      Creates a new instance with the precision attribute defaulting to 5 and no fill of the area 'under' the spline.
    • XYSplineRenderer

      public XYSplineRenderer(int precision)
      Creates a new renderer with the specified precision and no fill of the area 'under' (between '0' and) the spline.
      Parameters:
      precision - the number of points between data items.
    • XYSplineRenderer

      public XYSplineRenderer(int precision, XYSplineRenderer.FillType fillType)
      Creates a new renderer with the specified precision and specified fill of the area 'under' (between '0' and) the spline.
      Parameters:
      precision - the number of points between data items.
      fillType - the type of fill beneath the curve (null not permitted).
  • Method Details