public class HorizontalBarHighlighter extends BarHighlighter
mChart, mHighlightBuffer| Constructor and Description |
|---|
HorizontalBarHighlighter(BarDataProvider chart) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<Highlight> |
buildHighlights(IDataSet set,
int dataSetIndex,
float xVal,
DataSet.Rounding rounding)
An array of `Highlight` objects corresponding to the selected xValue and dataSetIndex.
|
protected float |
getDistance(float x1,
float y1,
float x2,
float y2)
Calculates the distance between the two given points.
|
Highlight |
getHighlight(float x,
float y)
Returns a Highlight object corresponding to the given x- and y- touch positions in pixels.
|
getClosestStackIndex, getData, getStackedHighlightgetClosestHighlightByPixel, getHighlightForX, getHighlightPos, getHighlightsAtXValue, getMinimumDistance, getValsForTouchpublic HorizontalBarHighlighter(BarDataProvider chart)
public Highlight getHighlight(float x, float y)
IHighlightergetHighlight in interface IHighlightergetHighlight in class BarHighlighterprotected java.util.List<Highlight> buildHighlights(IDataSet set, int dataSetIndex, float xVal, DataSet.Rounding rounding)
ChartHighlighterbuildHighlights in class ChartHighlighter<BarDataProvider>protected float getDistance(float x1,
float y1,
float x2,
float y2)
ChartHighlightergetDistance in class BarHighlighter