org.jfree.chart.renderer.xy
public class DeviationRenderer extends XYLineAndShapeRenderer
Since: 1.0.5
Nested Class Summary | |
---|---|
static class | DeviationRenderer.State
A state object that is passed to each call to drawItem . |
Constructor Summary | |
---|---|
DeviationRenderer()
Creates a new renderer that displays lines and shapes for the data
items, as well as the shaded area for the y-interval. | |
DeviationRenderer(boolean lines, boolean shapes)
Creates a new renderer.
|
Method Summary | |
---|---|
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.
|
boolean | equals(Object obj)
Tests this renderer for equality with an arbitrary object.
|
float | getAlpha()
Returns the alpha transparency for the background shading.
|
int | getPassCount()
Returns the number of passes (through the dataset) used by this
renderer.
|
XYItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info)
Initialises and returns a state object that can be passed to each
invocation of the DeviationRenderer method.
|
protected boolean | isItemPass(int pass)
Returns true if this is the pass where the shapes are
drawn.
|
protected boolean | isLinePass(int pass)
Returns true if this is the pass where the lines are
drawn.
|
void | setAlpha(float alpha)
Sets the alpha transparency for the background shading, and sends a
RendererChangeEvent to all registered listeners.
|
void | setDrawSeriesLineAsPath(boolean flag)
This method is overridden so that this flag cannot be changed---it is
set to true for this renderer.
|
Parameters: lines show lines between data items? shapes show a shape for each data item?
Parameters: g2 the graphics device. state the renderer state. dataArea the area within which the data is being drawn. info collects information about the drawing. plot the plot (can be used to obtain standard color
information etc). domainAxis the domain axis. rangeAxis the range axis. dataset the dataset. series the series index (zero-based). item the item index (zero-based). crosshairState crosshair information for the plot
(null
permitted). pass the pass index.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The alpha transparency.
See Also: DeviationRenderer
Returns: 3
.
Parameters: g2 the graphics target. dataArea the data area. plot the plot. dataset the dataset. info the plot rendering info.
Returns: A newly initialised state object.
true
if this is the pass where the shapes are
drawn.
Parameters: pass the pass index.
Returns: A boolean.
See Also: DeviationRenderer
true
if this is the pass where the lines are
drawn.
Parameters: pass the pass index.
Returns: A boolean.
See Also: DeviationRenderer
Parameters: alpha the alpha (in the range 0.0f to 1.0f).
See Also: getAlpha
true
for this renderer.
Parameters: flag ignored.