| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.XYDifferenceRenderer
Method Summary | |
public Object | clone() Returns a clone of the renderer. | 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 of a single data item. | protected void | drawItemPass0(Graphics2D x_graphics, Rectangle2D x_dataArea, PlotRenderingInfo x_info, XYPlot x_plot, ValueAxis x_domainAxis, ValueAxis x_rangeAxis, XYDataset x_dataset, int x_series, int x_item, CrosshairState x_crosshairState) Draws the visual representation of a single data item, first pass. | protected void | drawItemPass1(Graphics2D x_graphics, Rectangle2D x_dataArea, PlotRenderingInfo x_info, XYPlot x_plot, ValueAxis x_domainAxis, ValueAxis x_rangeAxis, XYDataset x_dataset, int x_series, int x_item, CrosshairState x_crosshairState) Draws the visual representation of a single data item, second pass. | public boolean | equals(Object obj) Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public LegendItem | getLegendItem(int datasetIndex, int series) Returns a default legend item for the specified series. | public Shape | getLegendLine() Returns the shape used to represent a line in the legend. | public Paint | getNegativePaint() Returns the paint used to highlight negative differences. | public int | getPassCount() Returns 2 , the number of passes required by the renderer. | public Paint | getPositivePaint() Returns the paint used to highlight positive differences. | public boolean | getRoundXCoordinates() Returns the flag that controls whether or not the x-coordinates (in
Java2D space) are rounded to integer values. | public boolean | getShapesVisible() Returns a flag that controls whether or not shapes are drawn for each
data value. | public XYItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) Initialises the renderer and returns a state object that should be
passed to subsequent calls to the drawItem() method. | public void | setLegendLine(Shape line) Sets the shape used as a line in each legend item and sends a
RendererChangeEvent to all registered listeners. | public void | setNegativePaint(Paint paint) Sets the paint used to highlight negative differences. | public void | setPositivePaint(Paint paint) Sets the paint used to highlight positive differences. | public void | setRoundXCoordinates(boolean round) Sets the flag that controls whether or not the x-coordinates (in
Java2D space) are rounded to integer values, and sends a
RendererChangeEvent to all registered listeners. | public void | setShapesVisible(boolean flag) Sets a flag that controls whether or not shapes are drawn for each
data value. |
XYDifferenceRenderer | public XYDifferenceRenderer()(Code) | | Creates a new renderer with default attributes.
|
XYDifferenceRenderer | public XYDifferenceRenderer(Paint positivePaint, Paint negativePaint, boolean shapes)(Code) | | Creates a new renderer.
Parameters: positivePaint - the highlight color for positive differences (null not permitted). Parameters: negativePaint - the highlight color for negative differences (null not permitted). Parameters: shapes - draw shapes? |
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 of a single data item.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the area within which the data is being drawn. Parameters: info - collects information about the drawing. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: domainAxis - the domain (horizontal) axis. Parameters: rangeAxis - the range (vertical) axis. Parameters: dataset - the dataset. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). Parameters: crosshairState - crosshair information for the plot (null permitted). Parameters: pass - the pass index. |
drawItemPass0 | protected void drawItemPass0(Graphics2D x_graphics, Rectangle2D x_dataArea, PlotRenderingInfo x_info, XYPlot x_plot, ValueAxis x_domainAxis, ValueAxis x_rangeAxis, XYDataset x_dataset, int x_series, int x_item, CrosshairState x_crosshairState)(Code) | | Draws the visual representation of a single data item, first pass.
Parameters: x_graphics - the graphics device. Parameters: x_dataArea - the area within which the data is being drawn. Parameters: x_info - collects information about the drawing. Parameters: x_plot - the plot (can be used to obtain standard color information etc). Parameters: x_domainAxis - the domain (horizontal) axis. Parameters: x_rangeAxis - the range (vertical) axis. Parameters: x_dataset - the dataset. Parameters: x_series - the series index (zero-based). Parameters: x_item - the item index (zero-based). Parameters: x_crosshairState - crosshair information for the plot (null permitted). |
drawItemPass1 | protected void drawItemPass1(Graphics2D x_graphics, Rectangle2D x_dataArea, PlotRenderingInfo x_info, XYPlot x_plot, ValueAxis x_domainAxis, ValueAxis x_rangeAxis, XYDataset x_dataset, int x_series, int x_item, CrosshairState x_crosshairState)(Code) | | Draws the visual representation of a single data item, second pass. In
the second pass, the renderer draws the lines and shapes for the
individual points in the two series.
Parameters: x_graphics - the graphics device. Parameters: x_dataArea - the area within which the data is being drawn. Parameters: x_info - collects information about the drawing. Parameters: x_plot - the plot (can be used to obtain standard color information etc). Parameters: x_domainAxis - the domain (horizontal) axis. Parameters: x_rangeAxis - the range (vertical) axis. Parameters: x_dataset - the dataset. Parameters: x_series - the series index (zero-based). Parameters: x_item - the item index (zero-based). Parameters: x_crosshairState - crosshair information for the plot (null permitted). |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getLegendItem | public LegendItem getLegendItem(int datasetIndex, int series)(Code) | | Returns a default legend item for the specified series. Subclasses
should override this method to generate customised items.
Parameters: datasetIndex - the dataset index (zero-based). Parameters: series - the series index (zero-based). A legend item for the series. |
getPassCount | public int getPassCount()(Code) | | Returns 2 , the number of passes required by the renderer.
The
XYPlot will run through the dataset this number of times.
The number of passes required by the renderer. |
initialise | public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code) | | Initialises the renderer and returns a state object that should be
passed to subsequent calls to the drawItem() method. 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. Parameters: dataArea - the area inside the axes. Parameters: plot - the plot. Parameters: data - the data. Parameters: info - an optional info collection object to return data back to the caller. A state object. |
setRoundXCoordinates | public void setRoundXCoordinates(boolean round)(Code) | | Sets the flag that controls whether or not the x-coordinates (in
Java2D space) are rounded to integer values, and sends a
RendererChangeEvent to all registered listeners.
Parameters: round - the new flag value. since: 1.0.4 See Also: XYDifferenceRenderer.getRoundXCoordinates() |
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)
|
|
|