Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.xy.AbstractXYItemRenderer
org.jfree.chart.renderer.xy.XYLineAndShapeRenderer
org.jfree.chart.renderer.xy.XYErrorRenderer
public class XYErrorRenderer
extends XYLineAndShapeRenderer
IntervalXYDataset
, otherwise it reverts
to the behaviour of the super class.
Nested Class Summary |
Nested classes/interfaces inherited from class org.jfree.chart.renderer.xy.XYLineAndShapeRenderer | |
XYLineAndShapeRenderer.State |
Field Summary |
Fields inherited from class org.jfree.chart.renderer.AbstractRenderer | |
DEFAULT_OUTLINE_PAINT , DEFAULT_OUTLINE_STROKE , DEFAULT_PAINT , DEFAULT_SHAPE , DEFAULT_STROKE , DEFAULT_VALUE_LABEL_FONT , DEFAULT_VALUE_LABEL_PAINT , ZERO |
Constructor Summary | |
|
Method Summary | |
void |
|
boolean |
|
Range |
|
Range |
|
double |
|
boolean |
|
boolean |
|
Paint |
|
void |
|
void |
|
void |
|
void |
|
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 for one data item.
- Specified by:
- drawItem in interface XYItemRenderer
- Overrides:
- drawItem in interface XYLineAndShapeRenderer
- 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.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Overrides:
- equals in interface XYLineAndShapeRenderer
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public Range findDomainBounds(XYDataset dataset)
Returns the range required by this renderer to display all the domain values in the specified dataset.
- Specified by:
- findDomainBounds in interface XYItemRenderer
- Overrides:
- findDomainBounds in interface AbstractXYItemRenderer
- Parameters:
dataset
- the dataset (null
permitted).
- Returns:
- The range, or
null
if the dataset isnull
.
public Range findRangeBounds(XYDataset dataset)
Returns the range required by this renderer to display all the range values in the specified dataset.
- Specified by:
- findRangeBounds in interface XYItemRenderer
- Overrides:
- findRangeBounds in interface AbstractXYItemRenderer
- Parameters:
dataset
- the dataset (null
permitted).
- Returns:
- The range, or
null
if the dataset isnull
.
public double getCapLength()
Returns the length (in Java2D units) of the cap at the end of the error bars.
- Returns:
- The cap length.
- See Also:
setCapLength(double)
public boolean getDrawXError()
Returns the flag that controls whether or not the renderer draws error bars for the x-values.
- Returns:
- A boolean.
- See Also:
setDrawXError(boolean)
public boolean getDrawYError()
Returns the flag that controls whether or not the renderer draws error bars for the y-values.
- Returns:
- A boolean.
- See Also:
setDrawYError(boolean)
public Paint getErrorPaint()
Returns the paint used to draw the error bars. If this isnull
(the default), the item paint is used instead.
- Returns:
- The paint (possibly
null
).
- See Also:
setErrorPaint(Paint)
public void setCapLength(double length)
Sets the length of the cap at the end of the error bars, and sends aRendererChangeEvent
to all registered listeners.
- Parameters:
length
- the length (in Java2D units).
- See Also:
getCapLength()
public 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 aRendererChangeEvent
to all registered listeners.
- Parameters:
draw
- the flag value.
- See Also:
getDrawXError()
public 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 aRendererChangeEvent
to all registered listeners.
- Parameters:
draw
- the flag value.
- See Also:
getDrawYError()
public void setErrorPaint(Paint paint)
Sets the paint used to draw the error bars.
- Parameters:
paint
- the paint (null
permitted).
- See Also:
getErrorPaint()