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 |
|---|---|
Highlight |
getHighlight(float x,
float y)
Returns a Highlight object corresponding to the given x- and y- touch positions in pixels.
|
protected SelectionDetail |
getSelectionDetail(int xIndex,
float y,
int dataSetIndex)
Returns the corresponding SelectionDetail for a given xIndex and y-touch position in pixels.
|
protected java.util.List<SelectionDetail> |
getSelectionDetailsAtIndex(int xIndex,
int dataSetIndex)
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 SelectionDetail getSelectionDetail(int xIndex, float y, int dataSetIndex)
xIndex - y - dataSetIndex - protected java.util.List<SelectionDetail> getSelectionDetailsAtIndex(int xIndex, int dataSetIndex)
xIndex - dataSetIndex - dataSet index to look at. -1 if unspecified.