1111import android .util .Log ;
1212import android .view .MotionEvent ;
1313
14- import com .github .mikephil .charting .animation .Easing ;
1514import com .github .mikephil .charting .animation .Easing .EasingFunction ;
1615import com .github .mikephil .charting .components .Legend ;
1716import com .github .mikephil .charting .components .XAxis ;
@@ -253,10 +252,6 @@ public void calculateOffsets() {
253252 * returns the angle relative to the chart center for the given point on the
254253 * chart in degrees. The angle is always between 0 and 360°, 0° is NORTH,
255254 * 90° is EAST, ...
256- *
257- * @param x
258- * @param y
259- * @return
260255 */
261256 public float getAngleForPoint (float x , float y ) {
262257
@@ -287,11 +282,7 @@ public float getAngleForPoint(float x, float y) {
287282 * Returns a recyclable MPPointF instance.
288283 * Calculates the position around a center point, depending on the distance
289284 * from the center, and the angle of the position around the center.
290- *
291- * @param center
292- * @param dist
293285 * @param angle in degrees, converted to radians internally
294- * @return
295286 */
296287 public MPPointF getPosition (MPPointF center , float dist , float angle ) {
297288
@@ -306,12 +297,7 @@ public void getPosition(MPPointF center, float dist, float angle, MPPointF outpu
306297 }
307298
308299 /**
309- * Returns the distance of a certain point on the chart to the center of the
310- * chart.
311- *
312- * @param x
313- * @param y
314- * @return
300+ * Returns the distance of a certain point on the chart to the center of the chart.
315301 */
316302 public float distanceToCenter (float x , float y ) {
317303
@@ -345,17 +331,12 @@ public float distanceToCenter(float x, float y) {
345331 /**
346332 * Returns the xIndex for the given angle around the center of the chart.
347333 * Returns -1 if not found / outofbounds.
348- *
349- * @param angle
350- * @return
351334 */
352335 public abstract int getIndexForAngle (float angle );
353336
354337 /**
355338 * Set an offset for the rotation of the RadarChart in degrees. Default 270f
356339 * --> top (NORTH)
357- *
358- * @param angle
359340 */
360341 public void setRotationAngle (float angle ) {
361342 mRawRotationAngle = angle ;
@@ -367,8 +348,6 @@ public void setRotationAngle(float angle) {
367348 * returned value could be any value, negative or positive, outside of the
368349 * 360 degrees. this is used when working with rotation direction, mainly by
369350 * gestures and animations.
370- *
371- * @return
372351 */
373352 public float getRawRotationAngle () {
374353 return mRawRotationAngle ;
@@ -377,8 +356,6 @@ public float getRawRotationAngle() {
377356 /**
378357 * gets a normalized version of the current rotation angle of the pie chart,
379358 * which will always be between 0.0 < 360.0
380- *
381- * @return
382359 */
383360 public float getRotationAngle () {
384361 return mRotationAngle ;
@@ -387,17 +364,13 @@ public float getRotationAngle() {
387364 /**
388365 * Set this to true to enable the rotation / spinning of the chart by touch.
389366 * Set it to false to disable it. Default: true
390- *
391- * @param enabled
392367 */
393368 public void setRotationEnabled (boolean enabled ) {
394369 mRotateEnabled = enabled ;
395370 }
396371
397372 /**
398373 * Returns true if rotation of the chart by touch is enabled, false if not.
399- *
400- * @return
401374 */
402375 public boolean isRotationEnabled () {
403376 return mRotateEnabled ;
@@ -419,8 +392,6 @@ public void setMinOffset(float minOffset) {
419392
420393 /**
421394 * returns the diameter of the pie- or radar-chart
422- *
423- * @return
424395 */
425396 public float getDiameter () {
426397 RectF content = mViewPortHandler .getContentRect ();
@@ -433,23 +404,17 @@ public float getDiameter() {
433404
434405 /**
435406 * Returns the radius of the chart in pixels.
436- *
437- * @return
438407 */
439408 public abstract float getRadius ();
440409
441410 /**
442411 * Returns the required offset for the chart legend.
443- *
444- * @return
445412 */
446413 protected abstract float getRequiredLegendOffset ();
447414
448415 /**
449416 * Returns the base offset needed for the chart without calculating the
450417 * legend size.
451- *
452- * @return
453418 */
454419 protected abstract float getRequiredBaseOffset ();
455420
@@ -465,17 +430,8 @@ public float getYChartMin() {
465430 return 0 ;
466431 }
467432
468- /**
469- * ################ ################ ################ ################
470- */
471- /** CODE BELOW THIS RELATED TO ANIMATION */
472-
473433 /**
474434 * Applys a spin animation to the Chart.
475- *
476- * @param durationmillis
477- * @param fromangle
478- * @param toangle
479435 */
480436 @ SuppressLint ("NewApi" )
481437 public void spin (int durationmillis , float fromangle , float toangle , EasingFunction easing ) {
0 commit comments