public class

CyclicXYItemRenderer

extends StandardXYItemRenderer
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.renderer.AbstractRenderer
     ↳ org.jfree.chart.renderer.xy.AbstractXYItemRenderer
       ↳ org.jfree.chart.renderer.xy.StandardXYItemRenderer
         ↳ org.jfree.chart.renderer.xy.CyclicXYItemRenderer

Class Overview

The Cyclic XY item renderer is specially designed to handle cyclic axis. While the standard renderer would draw a line across the plot when a cycling occurs, the cyclic renderer splits the line at each cycle end instead. This is done by interpolating new points at cycle boundary. Thus, correct appearance is restored. The Cyclic XY item renderer works exactly like a standard XY item renderer with non-cyclic axis.

Summary

Nested Classes
class CyclicXYItemRenderer.OverwriteDataSet A dataset to hold the interpolated points when drawing new lines. 
[Expand]
Inherited Constants
From class org.jfree.chart.renderer.xy.StandardXYItemRenderer
[Expand]
Inherited Fields
From class org.jfree.chart.renderer.AbstractRenderer
Public Constructors
CyclicXYItemRenderer()
Default constructor.
CyclicXYItemRenderer(int type)
Creates a new renderer.
CyclicXYItemRenderer(int type, XYToolTipGenerator labelGenerator)
Creates a new renderer.
CyclicXYItemRenderer(int type, XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator)
Creates a new renderer.
Public Methods
void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)
Draws the visual representation of a single data item.
[Expand]
Inherited Methods
From class org.jfree.chart.renderer.xy.StandardXYItemRenderer
From class org.jfree.chart.renderer.xy.AbstractXYItemRenderer
From class org.jfree.chart.renderer.AbstractRenderer
From class java.lang.Object
From interface org.jfree.chart.LegendItemSource
From interface org.jfree.chart.renderer.xy.XYItemRenderer

Public Constructors

public CyclicXYItemRenderer ()

Default constructor.

public CyclicXYItemRenderer (int type)

Creates a new renderer.

Parameters
type the renderer type.

public CyclicXYItemRenderer (int type, XYToolTipGenerator labelGenerator)

Creates a new renderer.

Parameters
type the renderer type.
labelGenerator the tooltip generator.

public CyclicXYItemRenderer (int type, XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator)

Creates a new renderer.

Parameters
type the renderer type.
labelGenerator the tooltip generator.
urlGenerator the url generator.

Public Methods

public void drawItem (Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)

Draws the visual representation of a single data item. When using cyclic axis, do not draw a line from right to left when cycling as would a standard XY item renderer, but instead draw a line from the previous point to the cycle bound in the last cycle, and a line from the cycle bound to current point in the current cycle.

Parameters
g2 the graphics device.
state the renderer state.
dataArea the data area.
info the plot rendering info.
plot the plot.
domainAxis the domain axis.
rangeAxis the range axis.
dataset the dataset.
series the series index.
item the item index.
crosshairState crosshair information for the plot (null permitted).
pass the current pass index.