ChartHighlighter<T extends BarLineScatterCandleBubbleDataProvider> class

Implemented types
Implementers

Constructors

ChartHighlighter(T provider)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
highlightBuffer List<Highlight>
read-only
provider → T
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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. [...]
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. [...]
getData() BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleDataSet<Entry>>
getDistance(double x1, double y1, double x2, double y2) double
Calculates the distance between the two given points. [...]
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. [...]
getHighlightPos(Highlight h) double
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). [...]
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. [...]
getValsForTouch(double x, double y) MPPointD
Returns a recyclable MPPointD instance. Returns the corresponding xPos for a given touch-position in pixels. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited