コード例 #1
0
 @Override
 public void drawLevelNumber(final int level) {
   drawLevelNumberCenteredInRect(
       bitmapCanvas,
       level,
       "" + level,
       fontSizeLevel,
       GeometrieHelper.getCircle(center, maxRadius * 0.25f));
 }
コード例 #2
0
 @Override
 public void drawBattStatusText(final int level) {
   final Path mArc = new Path();
   final RectF oval = GeometrieHelper.getCircle(center, maxRadius * 0.40f);
   mArc.addArc(oval, 180, 180);
   final String text = Settings.getBattStatusCompleteShort();
   final Paint p = PaintProvider.getTextBattStatusPaint(fontSizeArc, Align.CENTER, true);
   bitmapCanvas.drawTextOnPath(text, mArc, 0, 0, p);
 }