| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.XYLineAndShapeRenderer org.jfree.chart.renderer.xy.XYErrorRenderer
XYErrorRenderer | public class XYErrorRenderer extends XYLineAndShapeRenderer (Code) | | A line and shape renderer that can also display x and/or y-error values.
This renderer expects an
IntervalXYDataset , otherwise it reverts
to the behaviour of the super class.
since: 1.0.3 |
Constructor Summary | |
public | XYErrorRenderer() Creates a new XYErrorRenderer instance. |
Method Summary | |
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. | public boolean | equals(Object obj) Tests this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public Range | findDomainBounds(XYDataset dataset) Returns the range required by this renderer to display all the domain
values in the specified dataset.
Parameters: dataset - the dataset (null permitted). | public Range | findRangeBounds(XYDataset dataset) Returns the range required by this renderer to display all the range
values in the specified dataset.
Parameters: dataset - the dataset (null permitted). | public double | getCapLength() Returns the length (in Java2D units) of the cap at the end of the error
bars. | public boolean | getDrawXError() Returns the flag that controls whether or not the renderer draws error
bars for the x-values. | public boolean | getDrawYError() Returns the flag that controls whether or not the renderer draws error
bars for the y-values. | public Paint | getErrorPaint() Returns the paint used to draw the error bars. | public 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. | 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 a
RendererChangeEvent to all registered listeners. | 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 a
RendererChangeEvent to all registered listeners. | public void | setErrorPaint(Paint paint) Sets the paint used to draw the error bars. |
XYErrorRenderer | public XYErrorRenderer()(Code) | | Creates a new XYErrorRenderer instance.
|
drawItem | 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)(Code) | | Draws the visual representation for one data item.
Parameters: g2 - the graphics output target. Parameters: state - the renderer state. Parameters: dataArea - the data area. Parameters: info - the plot rendering info. Parameters: plot - the plot. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: series - the series index. Parameters: item - the item index. Parameters: crosshairState - the crosshair state. Parameters: pass - the pass index. |
equals | public boolean equals(Object obj)(Code) | | Tests this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
findDomainBounds | public Range findDomainBounds(XYDataset dataset)(Code) | | Returns the range required by this renderer to display all the domain
values in the specified dataset.
Parameters: dataset - the dataset (null permitted). The range, or null if the dataset is null . |
findRangeBounds | public Range findRangeBounds(XYDataset dataset)(Code) | | Returns the range required by this renderer to display all the range
values in the specified dataset.
Parameters: dataset - the dataset (null permitted). The range, or null if the dataset is null . |
setDrawXError | public void setDrawXError(boolean draw)(Code) | | 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.
Parameters: draw - the flag value. See Also: XYErrorRenderer.getDrawXError() |
setDrawYError | public void setDrawYError(boolean draw)(Code) | | 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.
Parameters: draw - the flag value. See Also: XYErrorRenderer.getDrawYError() |
Methods inherited from org.jfree.chart.renderer.xy.XYLineAndShapeRenderer | public Object clone() throws CloneNotSupportedException(Code)(Java Doc) protected void drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape)(Code)(Java Doc) 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)(Code)(Java Doc) protected void drawPrimaryLine(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea)(Code)(Java Doc) protected void drawPrimaryLineAsPath(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea)(Code)(Java Doc) protected void drawSecondaryPass(Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, Rectangle2D dataArea, ValueAxis rangeAxis, CrosshairState crosshairState, EntityCollection entities)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public boolean getBaseLinesVisible()(Code)(Java Doc) public boolean getBaseShapesFilled()(Code)(Java Doc) public boolean getBaseShapesVisible()(Code)(Java Doc) public boolean getDrawOutlines()(Code)(Java Doc) public boolean getDrawSeriesLineAsPath()(Code)(Java Doc) public boolean getItemLineVisible(int series, int item)(Code)(Java Doc) public boolean getItemShapeFilled(int series, int item)(Code)(Java Doc) public boolean getItemShapeVisible(int series, int item)(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public Shape getLegendLine()(Code)(Java Doc) public Boolean getLinesVisible()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public Boolean getSeriesLinesVisible(int series)(Code)(Java Doc) public Boolean getSeriesShapesFilled(int series)(Code)(Java Doc) public Boolean getSeriesShapesVisible(int series)(Code)(Java Doc) public Boolean getShapesVisible()(Code)(Java Doc) public boolean getUseFillPaint()(Code)(Java Doc) public boolean getUseOutlinePaint()(Code)(Java Doc) public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)(Java Doc) protected boolean isItemPass(int pass)(Code)(Java Doc) protected boolean isLinePass(int pass)(Code)(Java Doc) public void setBaseLinesVisible(boolean flag)(Code)(Java Doc) public void setBaseShapesFilled(boolean flag)(Code)(Java Doc) public void setBaseShapesVisible(boolean flag)(Code)(Java Doc) public void setDrawOutlines(boolean flag)(Code)(Java Doc) public void setDrawSeriesLineAsPath(boolean flag)(Code)(Java Doc) public void setLegendLine(Shape line)(Code)(Java Doc) public void setLinesVisible(Boolean visible)(Code)(Java Doc) public void setLinesVisible(boolean visible)(Code)(Java Doc) public void setSeriesLinesVisible(int series, Boolean flag)(Code)(Java Doc) public void setSeriesLinesVisible(int series, boolean visible)(Code)(Java Doc) public void setSeriesShapesFilled(int series, boolean flag)(Code)(Java Doc) public void setSeriesShapesFilled(int series, Boolean flag)(Code)(Java Doc) public void setSeriesShapesVisible(int series, boolean visible)(Code)(Java Doc) public void setSeriesShapesVisible(int series, Boolean flag)(Code)(Java Doc) public void setShapesFilled(boolean filled)(Code)(Java Doc) public void setShapesFilled(Boolean filled)(Code)(Java Doc) public void setShapesVisible(Boolean visible)(Code)(Java Doc) public void setShapesVisible(boolean visible)(Code)(Java Doc) public void setUseFillPaint(boolean flag)(Code)(Java Doc) public void setUseOutlinePaint(boolean flag)(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.renderer.xy.AbstractXYItemRenderer | public void addAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void addAnnotation(XYAnnotation annotation, Layer layer)(Code)(Java Doc) protected void addEntity(EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)(Code)(Java Doc) protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) protected Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)(Code)(Java Doc) public void drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, double x, double y, boolean negative)(Code)(Java Doc) public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public Range findDomainBounds(XYDataset dataset)(Code)(Java Doc) public Range findRangeBounds(XYDataset dataset)(Code)(Java Doc) public XYItemLabelGenerator getBaseItemLabelGenerator()(Code)(Java Doc) public XYToolTipGenerator getBaseToolTipGenerator()(Code)(Java Doc) public int getDefaultEntityRadius()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator(int series, int item)(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator()(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemLabelGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemToolTipGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemURLGenerator()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public XYPlot getPlot()(Code)(Java Doc) public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getSeriesToolTipGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator(int series, int item)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public XYURLGenerator getURLGenerator()(Code)(Java Doc) public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)(Java Doc) public boolean removeAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void removeAnnotations()(Code)(Java Doc) public void setBaseItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setBaseToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setDefaultEntityRadius(int radius)(Code)(Java Doc) public void setItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemURLGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setPlot(XYPlot plot)(Code)(Java Doc) public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)(Code)(Java Doc) public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)(Code)(Java Doc) public void setToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setURLGenerator(XYURLGenerator urlGenerator)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc)
|
|
|