File tree Expand file tree Collapse file tree
MPChartLib/src/com/github/mikephil/charting/renderer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,45 +366,6 @@ protected void drawCenterText(Canvas c) {
366366 c .translate (boundingRect .left , boundingRect .top + (boundingRect .height () - layoutHeight ) / 2.f );
367367 mCenterTextLayout .draw (c );
368368 c .restore ();
369-
370- // }
371- //
372- // else {
373- //
374- //
375- // // get all lines from the text
376- // String[] lines = centerText.toString().split("\n");
377- //
378- // float maxlineheight = 0f;
379- //
380- // // calc the maximum line height
381- // for (String line : lines) {
382- // float curHeight = Utils.calcTextHeight(mCenterTextPaint, line);
383- // if (curHeight > maxlineheight)
384- // maxlineheight = curHeight;
385- // }
386- //
387- // float linespacing = maxlineheight * 0.25f;
388- //
389- // float totalheight = maxlineheight * lines.length - linespacing * (lines.length - 1);
390- //
391- // int cnt = lines.length;
392- //
393- // float y = center.y;
394- //
395- // for (int i = 0; i < lines.length; i++) {
396- //
397- // String line = lines[lines.length - i - 1];
398- //
399- //
400- //
401- // c.drawText(line, center.x, y
402- // + maxlineheight * cnt - totalheight / 2f,
403- // mCenterTextPaint);
404- // cnt--;
405- // y -= linespacing;
406- // }
407- // }
408369 }
409370 }
410371
You can’t perform that action at this time.
0 commit comments