-
- All Implemented Interfaces:
-
com.github.mikephil.charting.highlight.IHighlighter
public class ChartHighlighter<T extends BarLineScatterCandleBubbleDataProvider> implements IHighlighter
Created by Philipp Jahoda on 21/07/15.
-
-
Constructor Summary
Constructors Constructor Description ChartHighlighter(T chart)
-
Method Summary
Modifier and Type Method Description HighlightgetHighlight(float x, float y)Returns a Highlight object corresponding to the given x- and y- touch positions in pixels. HighlightgetClosestHighlightByPixel(List<Highlight> closestValues, float x, float y, YAxis.AxisDependency axis, float minSelectionDistance)Returns the Highlight of the DataSet that contains the closest value on they-axis. -
-
Constructor Detail
-
ChartHighlighter
ChartHighlighter(T chart)
-
-
Method Detail
-
getHighlight
Highlight getHighlight(float x, float y)
Returns a Highlight object corresponding to the given x- and y- touch positions in pixels.
-
getClosestHighlightByPixel
Highlight getClosestHighlightByPixel(List<Highlight> closestValues, float x, float y, YAxis.AxisDependency axis, float minSelectionDistance)
Returns the Highlight of the DataSet that contains the closest value on they-axis.
- Parameters:
closestValues- contains two Highlight objects per DataSet closest to the selected x-position (determined byrounding up an down)axis- the closest axis
-
-
-
-