Class HitTestInfo
Defines a hit test info class which provides information on a series hit test operation See Also: com.scichart.charting.visuals.renderableSeries.IRenderableSeries#hitTest(HitTestInfo, float, float, float), com.scichart.charting.visuals.renderableSeries.IRenderableSeries#hitTest(HitTestInfo, float, float), com.scichart.charting.visuals.renderableSeries.IRenderableSeries#verticalSliceHitTest(HitTestInfo, float, float)
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class HitTestInfo implements ICleanable
Constructors
HitTestInfo()
Declaration
public HitTestInfo()
Fields
dataSeriesIndex
The index of hit test point in associated IDataSeries
Declaration
public int dataSeriesIndex
Field Value
| Type | Description |
|---|---|
| int |
hitRenderableSeries
Declaration
public renderableSeries.IRenderableSeries hitRenderableSeries
Field Value
| Type | Description |
|---|---|
| renderableSeries.IRenderableSeries |
hitTestPoint
The point where hit test is performed in pixels
Declaration
public final PointF hitTestPoint
Field Value
| Type | Description |
|---|---|
| android.graphics.PointF |
hitTestRadius
The hit test radium in pixels
Declaration
public float hitTestRadius
Field Value
| Type | Description |
|---|---|
| float |
isHit
The value indicating whether the HitTest operation was a hit or not
Declaration
public boolean isHit
Field Value
| Type | Description |
|---|---|
| boolean |
isWithinDataBounds
The value indicating whether the input point is between first and last series point or not
Declaration
public boolean isWithinDataBounds
Field Value
| Type | Description |
|---|---|
| boolean |
pointSeriesIndex
The index of hit test point in associated ISeriesRenderPassData
Declaration
public int pointSeriesIndex
Field Value
| Type | Description |
|---|---|
| int |
Methods
clear()
Declaration
public void clear()
isEmpty()
Gets the value indicating whether this HitTestInfo is empty or not
Declaration
public final boolean isEmpty()
Returns
| Type | Description |
|---|---|
| boolean | True if this HitTestInfo is empty |
set(float x, float y, float hitTestRadius, int dataSeriesIndex, int pointSeriesIndex)
Sets the hit test info values
Declaration
public void set(float x, float y, float hitTestRadius, int dataSeriesIndex, int pointSeriesIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The x coordinate of hit test point |
| float | y | The y coordinate of hit test point |
| float | hitTestRadius | The hit test radius |
| int | dataSeriesIndex | The index of hit test point in associated IDataSeries |
| int | pointSeriesIndex | The index of hit test point in associated ISeriesRenderPassData |