public class ChartHighlighter<T extends BarLineScatterCandleBubbleDataProvider>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
mChart
instance of the data-provider
|
| Constructor and Description |
|---|
ChartHighlighter(T chart) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDataSetIndex(int xIndex,
float x,
float y)
Returns the corresponding dataset-index for a given xIndex and xy-touch position in pixels.
|
Highlight |
getHighlight(float x,
float y)
Returns a Highlight object corresponding to the given x- and y- touch positions in pixels.
|
protected java.util.List<SelectionDetail> |
getSelectionDetailsAtIndex(int xIndex)
Returns a list of SelectionDetail object corresponding to the given xIndex.
|
protected int |
getXIndex(float x)
Returns the corresponding x-index for a given touch-position in pixels.
|
protected T extends BarLineScatterCandleBubbleDataProvider mChart
public ChartHighlighter(T chart)
public Highlight getHighlight(float x, float y)
x - y - protected int getXIndex(float x)
x - protected int getDataSetIndex(int xIndex,
float x,
float y)
xIndex - x - y - protected java.util.List<SelectionDetail> getSelectionDetailsAtIndex(int xIndex)
xIndex -