EPS text filled #2

This commit is contained in:
Milos Kozak 2021-11-30 22:33:12 +01:00
parent 5a1d1e1707
commit 3758897bea

View file

@ -277,6 +277,7 @@ public class PointsWithLabelGraphSeries<E extends DataPointWithLabelInterface> e
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);
mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
canvas.drawText(value.getLabel(), px, py, mPaint); canvas.drawText(value.getLabel(), px, py, mPaint);
mPaint.setStyle(Paint.Style.STROKE); 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);