OvalShape
open class OvalShape : 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 android.graphics.drawable.ShapeDrawable
.
Summary
Public constructors
Public methods
clone
open fun clone(): OvalShape
Exceptions |
java.lang.CloneNotSupportedException |
if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned. |
draw
open fun draw(
canvas: Canvas!,
paint: Paint!
): Unit
Parameters |
canvas |
Canvas!: the Canvas within which this shape should be drawn |
paint |
Paint!: the Paint object that defines this shape's characteristics |
getOutline
open fun getOutline(outline: Outline): Unit
Parameters |
outline |
Outline: the Outline to be populated with the result. Must be non-null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.