Calculates the offsets of the chart to the border depending on the
position of an eventual legend or depending on the length of the y-axis
and x-axis labels and their position
Returns a recyclable MPPointF instance.
Returns the center of the chart taking offsets under consideration.
(returns the center of the content rectangle)
Returns the Highlight object (contains x-index and DataSet index) of the
selected value at the given touch point inside the Line-, Scatter-, or
CandleStick-Chart.
Returns a recyclable MPPointF instance.
Returns the position (in pixels) the provided Entry has inside the chart
view or null, if the provided Entry is null.
Returns a recyclable MPPointD instance
Returns the x and y values in the chart at the given touch point
(encapsulated in a MPPointD). This method transforms pixel coordinates to
coordinates / values in the chart. This is the opposite method to
getPixelForValues(...).
Highlights any y-value at the given x-value in the given DataSet.
Provide -1 as the dataSetIndex to undo all highlighting.
This method will call the listener.
@param x The x-value to highlight
@param dataSetIndex The dataset index to search in
Highlights the value at the given x-value and y-value in the given DataSet.
Provide -1 as the dataSetIndex to undo all highlighting.
This method will call the listener.
@param x The x-value to highlight
@param y The y-value to highlight. Supply NaN for "any"
@param dataSetIndex The dataset index to search in
Highlights any y-value at the given x-value in the given DataSet.
Provide -1 as the dataSetIndex to undo all highlighting.
@param x The x-value to highlight
@param dataSetIndex The dataset index to search in
@param callListener Should the listener be called for this change
Highlights any y-value at the given x-value in the given DataSet.
Provide -1 as the dataSetIndex to undo all highlighting.
@param x The x-value to highlight
@param y The y-value to highlight. Supply NaN for "any"
@param dataSetIndex The dataset index to search in
@param callListener Should the listener be called for this change
Highlights the values at the given indices in the given DataSets. Provide
null or an empty array to undo all highlighting. This should be used to
programmatically highlight values.
This method will not call the listener.
Called whenever the object needs to paint. The given Canvas has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the size argument.
Called whenever a new instance of the custom painter delegate class is
provided to the RenderCustomPaint object, or any time that a new
CustomPaint object is created with a new instance of the custom painter
delegate class (which amounts to the same thing, because the latter is
implemented in terms of the former).
Called whenever a new instance of the custom painter delegate class is
provided to the RenderCustomPaint object, or any time that a new
CustomPaint object is created with a new instance of the custom painter
delegate class (which amounts to the same thing, because the latter is
implemented in terms of the former).
Returns true if there are values to highlight, false if there are no
values to highlight. Checks if the highlight array is null, has a length
of zero or if the first object is null.