Lines Matching refs:bounds
121 final Rect bounds = getBounds();
122 if (!isVisible() || bounds.isEmpty()) {
136 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
140 final Rect bounds = getBounds();
146 // Fit bitmap to bounds.
147 final float boundsWidth = (float) bounds.width();
148 final float boundsHeight = (float) bounds.height();
152 // Translate bitmap to dst bounds.
153 mMatrix.postTranslate(bounds.left, bounds.top);
157 drawCircle(canvas, bounds, mBitmapPaint);
160 final float radius = bounds.width() / 2f - mBorderWidth / 2;
161 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint);
169 final Rect bounds = getBounds();
175 drawCircle(canvas, bounds, sPaint);
186 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(),
187 bounds.centerY() + sRect.height() / 2, sPaint);
195 * Draws the largest circle that fits within the given <code>bounds</code>.
198 * @param bounds the bounding box of the circle
201 private static void drawCircle(Canvas canvas, Rect bounds, Paint paint) {
202 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, paint);