Package 

Class ChartHighlighter

    • Method Summary

      Modifier and Type Method Description
      Highlight getHighlight(float x, float y) Returns a Highlight object corresponding to the given x- and y- touch positions in pixels.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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