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 the angle relative to the chart center for the given point on the
chart in degrees. The angle is always between 0 and 360°, 0° is NORTH,
90° is EAST, ...
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.
Calculates the position around a center point, depending on the distance
from the center, and the angle of the position around the center.
gets the raw version of the current rotation angle of the pie chart the
returned value could be any value, negative or positive, outside of the
360 degrees. this is used when working with rotation direction, mainly by
gestures and animations.
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.