Shape

Class of android.graphics.drawable.shapes · Shape.java · Android's reference

public abstract class Shape implements Cloneable

A geometric shape, sized by resize and drawn at the origin.

Extended in the framework by

Constructors

public Shape() empty body source

Methods

public final float getWidth() source
public final float getHeight() source
public abstract void draw(Canvas canvas, Paint paint) source
public final void resize(float width, float height) source
public boolean hasAlpha() source
protected void onResize(float width, float height) empty body source
public void getOutline(Outline outline) empty body source
public Shape clone() throws CloneNotSupportedException source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.