Skip to content

Commit d125a1f

Browse files
committed
Cosmetic
1 parent 885463d commit d125a1f

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
5353
/**
5454
* Returns true if log-output is enabled for the chart, fals if not.
5555
*/
56-
/**
57-
* Set this to true to enable logcat outputs for the chart. Beware that
58-
* logcat output decreases rendering performance. Default: disabled.
59-
*/
60-
/**
61-
* flag that indicates if logging is enabled or not
62-
*/
6356
var isLogEnabled: Boolean = false
6457

6558
/**
@@ -68,24 +61,12 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
6861
*/
6962
protected var mData: T? = null
7063

71-
/**
72-
* Returns true if values can be highlighted via tap gesture, false if not.
73-
*/
7464
/**
7565
* Set this to false to prevent values from being highlighted by tap gesture.
7666
* Values can still be highlighted via drag or programmatically. Default: true
7767
*/
78-
/**
79-
* Flag that indicates if highlighting per tap (touch) is enabled
80-
*/
8168
var isHighlightPerTapEnabled: Boolean = true
8269

83-
/**
84-
* If set to true, chart continues to scroll after touch up default: true
85-
*/
86-
/**
87-
* If set to true, chart continues to scroll after touch up. Default: true.
88-
*/
8970
/**
9071
* If set to true, chart continues to scroll after touch up
9172
*/
@@ -130,22 +111,13 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
130111
* Returns the Description object of the chart that is responsible for holding all information related
131112
* to the description text that is displayed in the bottom right corner of the chart (by default).
132113
*/
133-
/**
134-
* Sets a new Description object for the chart.
135-
*/
136-
/**
137-
* the object responsible for representing the description text
138-
*/
139114
var description = Description()
140115

141116
/**
142117
* Returns the Legend object of the chart. This method can be used to get an
143118
* instance of the legend in order to customize the automatically generated
144119
* Legend.
145120
*/
146-
/**
147-
* the legend object containing all data associated with the legend
148-
*/
149121
var legend: Legend = Legend()
150122
protected set
151123

@@ -161,21 +133,14 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
161133
*/
162134
private var mNoDataText = "No chart data available."
163135

164-
/**
165-
* Returns the custom gesture listener.
166-
*/
167136
/**
168137
* Sets a gesture-listener for the chart for custom callbacks when executing
169138
* gestures on the chart surface.
170139
*/
171-
/**
172-
* Gesture listener for custom callbacks when making gestures on the chart.
173-
*/
174140
var onChartGestureListener: OnChartGestureListener? = null
175141

176142
/**
177-
* Returns the renderer object responsible for rendering / drawing the
178-
* Legend.
143+
* Returns the renderer object responsible for rendering / drawing the Legend.
179144
*/
180145
var legendRenderer: LegendRenderer? = null
181146
protected set
@@ -239,9 +204,7 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
239204
mXAxis = XAxis()
240205
setWillNotDraw(false)
241206

242-
// setLayerType(View.LAYER_TYPE_HARDWARE, null);
243207
mAnimator = ChartAnimator { animation: ValueAnimator? ->
244-
// ViewCompat.postInvalidateOnAnimation(Chart.this);
245208
postInvalidate()
246209
}
247210

@@ -443,10 +406,6 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
443406
}
444407
}
445408

446-
/**
447-
* Returns the array of currently highlighted values. This might a null or
448-
* empty array if nothing is highlighted.
449-
*/
450409
/**
451410
* array of Highlight objects that reference the highlighted slices in the
452411
* chart
@@ -502,7 +461,6 @@ abstract class Chart<T : ChartData<out IDataSet<out Entry>>?> : ViewGroup, IBase
502461

503462
setLastHighlighted(highs)
504463

505-
// redraw the chart
506464
invalidate()
507465
}
508466

chartLib/src/main/kotlin/info/appdev/charting/renderer/PieChartRenderer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,6 @@ open class PieChartRenderer(
685685
)
686686
}
687687

688-
//float layoutWidth = Utils.getStaticLayoutMaxWidth(mCenterTextLayout);
689688
val layoutHeight = centerTextLayout!!.height.toFloat()
690689

691690
canvas.save()

0 commit comments

Comments
 (0)