org.jfree.chart.renderer.xy
public class XYSplineRenderer extends XYLineAndShapeRenderer
XYSplineRendererDemo1.java
program included in the JFreeChart
demo collection:
Since: 1.0.7
Constructor Summary | |
---|---|
XYSplineRenderer()
Creates a new instance with the 'precision' attribute defaulting to
5. | |
XYSplineRenderer(int precision)
Creates a new renderer with the specified precision.
|
Method Summary | |
---|---|
protected void | drawPrimaryLineAsPath(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea)
Draws the item (first pass). |
boolean | equals(Object obj)
Tests this renderer for equality with an arbitrary object.
|
int | getPrecision()
Get the resolution of splines.
|
XYItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)
Initialises the renderer.
|
void | setPrecision(int p)
Set the resolution of splines and sends a RendererChangeEvent
to all registered listeners.
|
Parameters: precision the number of points between data items.
Parameters: g2 the graphics device. state the renderer state. plot the plot (can be used to obtain standard color information etc). dataset the dataset. pass the pass. series the series index (zero-based). item the item index (zero-based). domainAxis the domain axis. rangeAxis the range axis. dataArea the area within which the data is being drawn.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: Number of line segments between points.
See Also: XYSplineRenderer
This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses.
Parameters: g2 the graphics device. dataArea the area inside the axes. plot the plot. data the data. info an optional info collection object to return data back to the caller.
Returns: The renderer state.
Parameters: p number of line segments between points (must be > 0).
See Also: getPrecision