org.jfree.chart.renderer.xy
public class XYErrorRenderer extends XYLineAndShapeRenderer
Since: 1.0.3
Constructor Summary | |
---|---|
XYErrorRenderer()
Creates a new XYErrorRenderer instance. |
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 for one data item.
|
boolean | equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
Range | findDomainBounds(XYDataset dataset)
Returns the range required by this renderer to display all the domain
values in the specified dataset.
|
Range | findRangeBounds(XYDataset dataset)
Returns the range required by this renderer to display all the range
values in the specified dataset.
|
double | getCapLength()
Returns the length (in Java2D units) of the cap at the end of the error
bars.
|
boolean | getDrawXError()
Returns the flag that controls whether or not the renderer draws error
bars for the x-values.
|
boolean | getDrawYError()
Returns the flag that controls whether or not the renderer draws error
bars for the y-values.
|
Paint | getErrorPaint()
Returns the paint used to draw the error bars. |
void | setCapLength(double length)
Sets the length of the cap at the end of the error bars, and sends a
RendererChangeEvent to all registered listeners.
|
void | setDrawXError(boolean draw)
Sets the flag that controls whether or not the renderer draws error
bars for the x-values and, if the flag changes, sends a
RendererChangeEvent to all registered listeners.
|
void | setDrawYError(boolean draw)
Sets the flag that controls whether or not the renderer draws error
bars for the y-values and, if the flag changes, sends a
RendererChangeEvent to all registered listeners.
|
void | setErrorPaint(Paint paint)
Sets the paint used to draw the error bars and sends a
RendererChangeEvent to all registered listeners.
|
XYErrorRenderer
instance.Parameters: g2 the graphics output target. 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 the crosshair state. pass the pass index.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: dataset the dataset (null
permitted).
Returns: The range, or null
if the dataset is
null
.
Parameters: dataset the dataset (null
permitted).
Returns: The range, or null
if the dataset is
null
.
Returns: The cap length.
See Also: XYErrorRenderer
Returns: A boolean.
See Also: XYErrorRenderer
Returns: A boolean.
See Also: XYErrorRenderer
null
(the default), the item paint is used instead.
Returns: The paint (possibly null
).
See Also: setErrorPaint
Parameters: length the length (in Java2D units).
See Also: getCapLength
Parameters: draw the flag value.
See Also: getDrawXError
Parameters: draw the flag value.
See Also: getDrawYError
Parameters: paint the paint (null
permitted).
See Also: getErrorPaint