OvalShape.javaAPI DocAndroid 5.1 API1470Thu Mar 12 22:22:30 GMT


public class OvalShape extends RectShape
Defines an oval shape. The oval can be drawn to a Canvas with its own draw() method, but more graphical control is available if you instead pass the OvalShape to a {@link}.

Fields Summary
Constructors Summary
public OvalShape()

Methods Summary
public voiddraw( canvas, paint)

        canvas.drawOval(rect(), paint);
public voidgetOutline( outline)

        final RectF rect = rect();
        outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(,
                (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));