English | Site Directory

Android - An Open Handset Alliance Project

android.graphics.drawable.shapes.RectShape

java.lang.Object
android.graphics.drawable.shapes.Shape
android.graphics.drawable.shapes.RectShape
Known Direct Subclasses

Summary

Public Constructors

          RectShape()

Public Methods

        void  draw(Canvas canvas, Paint paint)
Draw this shape (sized by a previous call to resize()) into the provided canvas and paint.
        void  resize(int width, int height)
Resize this shape (as the subclass sees fit) based on the provided width and height.

Protected Methods

    final    RectF  rect()
Methods inherited from class android.graphics.drawable.shapes.Shape
Methods inherited from class java.lang.Object

Details

Public Constructors

public RectShape()

Public Methods

public void draw(Canvas canvas, Paint paint)

Draw this shape (sized by a previous call to resize()) into the provided canvas and paint.

public void resize(int width, int height)

Resize this shape (as the subclass sees fit) based on the provided width and height.

Protected Methods

protected final RectF rect()

Build m5-rc15i - 10 Jun 2008 13:54