Skip to content

Commit db76ec1

Browse files
committed
Remove non-decribed auto generated parameter from javadoc
1 parent cd0ad33 commit db76ec1

File tree

11 files changed

+16
-380
lines changed

11 files changed

+16
-380
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/charts/BarLineChartBase.java

Lines changed: 3 additions & 166 deletions
Large diffs are not rendered by default.

MPChartLib/src/main/java/com/github/mikephil/charting/charts/PieRadarChartBase.java

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import android.util.Log;
1212
import android.view.MotionEvent;
1313

14-
import com.github.mikephil.charting.animation.Easing;
1514
import com.github.mikephil.charting.animation.Easing.EasingFunction;
1615
import com.github.mikephil.charting.components.Legend;
1716
import 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) {

MPChartLib/src/main/java/com/github/mikephil/charting/components/XAxis.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public XAxisPosition getPosition() {
6262

6363
/**
6464
* sets the position of the x-labels
65-
*
66-
* @param pos
6765
*/
6866
public void setPosition(XAxisPosition pos) {
6967
mPosition = pos;
@@ -88,17 +86,13 @@ public void setLabelRotationAngle(float angle) {
8886
/**
8987
* if set to true, the chart will avoid that the first and last label entry
9088
* in the chart "clip" off the edge of the chart or the screen
91-
*
92-
* @param enabled
9389
*/
9490
public void setAvoidFirstLastClipping(boolean enabled) {
9591
mAvoidFirstLastClipping = enabled;
9692
}
9793

9894
/**
9995
* returns true if avoid-first-lastclipping is enabled, false if not
100-
*
101-
* @return
10296
*/
10397
public boolean isAvoidFirstLastClippingEnabled() {
10498
return mAvoidFirstLastClipping;

MPChartLib/src/main/java/com/github/mikephil/charting/data/BarDataSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public BarDataSet(List<BarEntry> yVals, String label) {
5454

5555
@Override
5656
public DataSet<BarEntry> copy() {
57-
List<BarEntry> entries = new ArrayList<BarEntry>();
57+
List<BarEntry> entries = new ArrayList<>();
5858
for (int i = 0; i < mEntries.size(); i++) {
5959
entries.add(mEntries.get(i).copy());
6060
}

0 commit comments

Comments
 (0)