|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.graphics.drawable.shapes.Shape
android.graphics.drawable.shapes.RectShape
public class RectShape
Defines a rectangle shape.
The rectangle can be drawn to a Canvas with its own draw() method,
but more graphical control is available if you instead pass
the RectShape to a ShapeDrawable.
| Constructor Summary | |
|---|---|
RectShape()
RectShape constructor. |
|
| Method Summary | |
|---|---|
void |
draw(Canvas canvas,
Paint paint)
Draw this shape into the provided Canvas, with the provided Paint. |
protected void |
onResize(float width,
float height)
Callback method called when Shape.resize(float,float) is executed. |
protected RectF |
rect()
Returns the RectF that defines this rectangle's bounds. |
| Methods inherited from class android.graphics.drawable.shapes.Shape |
|---|
getHeight, getWidth, hasAlpha, resize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RectShape()
| Method Detail |
|---|
public void draw(Canvas canvas,
Paint paint)
ShapeShape.resize(float,float).
draw in class Shapecanvas - the Canvas within which this shape should be drawnpaint - the Paint object that defines this shape's characteristics
protected void onResize(float width,
float height)
ShapeShape.resize(float,float) is executed.
onResize in class Shapewidth - the new width of the Shapeheight - the new height of the Shapeprotected final RectF rect()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||