java.lang.Object | ||
↳ | org.jfree.chart.plot.CrosshairState | |
↳ | org.jfree.chart.plot.CategoryCrosshairState |
Represents state information for the crosshairs in a CategoryPlot
.
An instance of this class is created at the start of the rendering process,
and updated as each data item is rendered. At the end of the rendering
process, this class holds the row key, column key and value for the
crosshair location.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the column key.
| |||||||||||
Returns the row key.
| |||||||||||
Sets the column key.
| |||||||||||
Sets the row key.
| |||||||||||
Evaluates a data point from a
CategoryItemRenderer and if it is
the closest to the anchor point it becomes the new crosshair point. | |||||||||||
Updates only the crosshair row and column keys (this is for the case
where the range crosshair does NOT lock onto the nearest data value).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new instance.
Evaluates a data point from a CategoryItemRenderer
and if it is
the closest to the anchor point it becomes the new crosshair point.
rowKey | the row key. |
---|---|
columnKey | the column key. |
value | y coordinate (measured against the range axis). |
datasetIndex | the dataset index for this point. |
transX | x translated into Java2D space. |
transY | y translated into Java2D space. |
orientation | the plot orientation. |
Updates only the crosshair row and column keys (this is for the case where the range crosshair does NOT lock onto the nearest data value).
rowKey | the row key. |
---|---|
columnKey | the column key. |
datasetIndex | the dataset axis index. |
transX | the translated x-value. |
orientation | the plot orientation. |