## Uses of Class
org.jfree.chart.plot.CrosshairState

- Packages that use CrosshairState
  Package | Description
  --- | ---
  org.jfree.chart.plot |
  org.jfree.chart.renderer.xy |

- - ### Uses of CrosshairState in org.jfree.chart.plot

    Methods in org.jfree.chart.plot with parameters of type CrosshairState
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | XYPlot.`render(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, int index, PlotRenderingInfo info, CrosshairState crosshairState)` Draws a representation of the data within the dataArea region, using the current renderer.
    `void` | FastScatterPlot.`render(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, PlotRenderingInfo info, CrosshairState crosshairState)` Draws a representation of the data within the dataArea region.

  - ### Uses of CrosshairState in org.jfree.chart.renderer.xy

    Methods in org.jfree.chart.renderer.xy with parameters of type CrosshairState
    Modifier and Type | Method and Description
    --- | ---
    `void` | XYItemRenderer.`drawItem(java.awt.Graphics2D g2, XYItemRendererState state, java.awt.geom.Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)` Called for each item to be plotted.
    `void` | XYLineAndShapeRenderer.`drawItem(java.awt.Graphics2D g2, XYItemRendererState state, java.awt.geom.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.
    `void` | XYBlockRenderer.`drawItem(java.awt.Graphics2D g2, XYItemRendererState state, java.awt.geom.Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)` Draws the block representing the specified item.
    `void` | StandardXYItemRenderer.`drawItem(java.awt.Graphics2D g2, XYItemRendererState state, java.awt.geom.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` | XYLineAndShapeRenderer.`drawSecondaryPass(java.awt.Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, java.awt.geom.Rectangle2D dataArea, ValueAxis rangeAxis, CrosshairState crosshairState, EntityCollection entities)` Draws the item shapes and adds chart entities (second pass).
    `protected void` | AbstractXYItemRenderer.`updateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)` Deprecated. Use `AbstractXYItemRenderer.updateCrosshairValues(CrosshairState, double, double, int, int, double, double, PlotOrientation)` -- see bug report 1086307.
    `protected void` | AbstractXYItemRenderer.`updateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)` Considers the current (x, y) coordinate and updates the crosshair point if it meets the criteria (usually means the (x, y) coordinate is the closest to the anchor point so far).