From 0202f11ed8da9e8652b336491e126d3aff48e20d Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Tue, 6 Jan 2026 10:18:55 +0100 Subject: [PATCH] Deprecation hints --- .../info/appdev/charting/charts/Chart.kt | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt b/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt index 96759f2c0..43402d984 100644 --- a/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt +++ b/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt @@ -946,19 +946,19 @@ abstract class Chart>> : ViewGroup, IBaseP } @Deprecated("") - fun setMarkerView(v: IMarker) { - setMarker(v) + fun setMarkerView(iMarker: IMarker) { + setMarker(iMarker) } - @get:Deprecated("") + @get:Deprecated("Use 'marker' directly") val markerView: MutableList get() = this.marker + /** + * Returns the rectangle that defines the borders of the chart-value surface + * (into which the actual values are drawn). + */ override val contentRect: RectF - /** - * Returns the rectangle that defines the borders of the chart-value surface - * (into which the actual values are drawn). - */ get() = viewPortHandler.contentRect /** @@ -1005,22 +1005,23 @@ abstract class Chart>> : ViewGroup, IBaseP } } - @get:Deprecated("") + @get:Deprecated("Use 'isDrawMarkersEnabled' directly") val isDrawMarkerViewsEnabled: Boolean get() = this.isDrawMarkersEnabled - @Deprecated("") - fun setDrawMarkerViews(enabled: Boolean) { - setDrawMarkers(enabled) + @Deprecated("Use 'isDrawMarkersEnabled' directly") + fun setDrawMarkerViews(value: Boolean) { + this.isDrawMarkersEnabled = value } /** * Set this to true to draw a user specified marker when tapping on - * chart values (use the setMarker(IMarker marker) method to specify a - * marker). Default: true + * chart values (use the setMarker(IMarker marker) method to specify a marker). + * Default: true */ - fun setDrawMarkers(enabled: Boolean) { - this.isDrawMarkersEnabled = enabled + @Deprecated("Use 'isDrawMarkersEnabled' directly") + fun setDrawMarkers(value: Boolean) { + this.isDrawMarkersEnabled = value } /**