BarHighlighter class
Methods
buildHighlights (IDataSet <Entry > set , int dataSetIndex , double xVal , Rounding rounding )
→ List <Highlight >
An array of Highlight
objects corresponding to the selected xValue and dataSetIndex.
inherited
getClosestHighlightByPixel (List <Highlight > closestValues , double x , double y , AxisDependency axis , double ? minSelectionDistance )
→ Highlight ?
Returns the Highlight of the DataSet that contains the closest value on the
y-axis.
inherited
getClosestStackIndex (List <Range ? > ranges , double ? value )
→ int
Returns the index of the closest value inside the values array / ranges (stacked barchart) to the value
given as
a parameter.
getData ()
→ BarLineScatterCandleBubbleData <IBarLineScatterCandleBubbleDataSet <Entry > > ?
override
getDistance (double x1 , double y1 , double x2 , double y2 )
→ double
Calculates the distance between the two given points.
override
getHighlight (double x , double y )
→ Highlight ?
override
getHighlightForX (double xVal , double x , double y )
→ Highlight ?
Returns the corresponding Highlight for a given xVal and x- and y-touch position in pixels.
inherited
getHighlightPos (Highlight h )
→ double ?
inherited
getHighlightsAtXValue (double xVal , double x , double y )
→ List <Highlight >
Returns a list of Highlight objects representing the entries closest to the given xVal.
The returned list contains two objects per DataSet (closest rounding up, closest rounding down).
inherited
getMinimumDistance (List <Highlight > closestValues , double pos , AxisDependency axis )
→ double
Returns the minimum distance from a touch value (in pixels) to the
closest value (in pixels) that is displayed in the chart.
inherited
getStackedHighlight (Highlight high , IBarDataSet set , double xVal , double yVal )
→ Highlight ?
This method creates the Highlight object that also indicates which value of a stacked BarEntry has been
selected.
getValsForTouch (double x , double y )
→ MPPointD
Returns a recyclable MPPointD instance.
Returns the corresponding xPos for a given touch-position in pixels.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited