Esempio n. 1
0
 protected final void a(Point point) {
   String s1 = c.j();
   String s = s1;
   if (s1.length() > 3) {
     s = s1.substring(0, 3);
   }
   c.f().getTextBounds(s, 0, s.length(), d);
   int i = Math.max(d.height(), d.width()) + 5;
   point.set(i, i);
 }
Esempio n. 2
0
 protected final void a(Canvas canvas, Rect rect) {
   (new Paint()).setAntiAlias(true);
   c.k().setBounds(rect);
   c.k().draw(canvas);
   canvas.drawText(c.j(), rect.centerX(), rect.centerY() + d.height() / 2, c.f());
 }