EPS text filled
This commit is contained in:
parent
6ba6cd6edd
commit
5a1d1e1707
1 changed files with 1 additions and 1 deletions
|
@ -273,12 +273,12 @@ public class PointsWithLabelGraphSeries<E extends DataPointWithLabelInterface> e
|
||||||
mPaint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));
|
mPaint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));
|
||||||
Rect bounds = new Rect();
|
Rect bounds = new Rect();
|
||||||
mPaint.getTextBounds(value.getLabel(), 0, value.getLabel().length(), bounds);
|
mPaint.getTextBounds(value.getLabel(), 0, value.getLabel().length(), bounds);
|
||||||
mPaint.setStyle(Paint.Style.STROKE);
|
|
||||||
float px = endX + bounds.height() / 2.0f;
|
float px = endX + bounds.height() / 2.0f;
|
||||||
float py = (float) (graphHeight * ratY + bounds.width() + 10);
|
float py = (float) (graphHeight * ratY + bounds.width() + 10);
|
||||||
canvas.save();
|
canvas.save();
|
||||||
canvas.rotate(-90, px, py);
|
canvas.rotate(-90, px, py);
|
||||||
canvas.drawText(value.getLabel(), px, py, mPaint);
|
canvas.drawText(value.getLabel(), px, py, mPaint);
|
||||||
|
mPaint.setStyle(Paint.Style.STROKE);
|
||||||
canvas.drawRect(px - 3, bounds.top + py - 3, bounds.right + px + 3, bounds.bottom + py + 3, mPaint);
|
canvas.drawRect(px - 3, bounds.top + py - 3, bounds.right + px + 3, bounds.bottom + py + 3, mPaint);
|
||||||
canvas.restore();
|
canvas.restore();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue