android.graphics.drawable.shapes
Class RectShape

java.lang.Object
  extended by android.graphics.drawable.shapes.Shape
      extended by android.graphics.drawable.shapes.RectShape
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ArcShape, OvalShape, RoundRectShape

public class RectShape
extends Shape


Constructor Summary
RectShape()
           
 
Method Summary
 RectShape clone()
           
 void draw(Canvas canvas, Paint paint)
           
protected  void onResize(float width, float height)
           
protected  RectF rect()
           
 
Methods inherited from class android.graphics.drawable.shapes.Shape
getHeight, getWidth, hasAlpha, resize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectShape

public RectShape()
Method Detail

draw

public void draw(Canvas canvas,
                 Paint paint)
Specified by:
draw in class Shape

onResize

protected void onResize(float width,
                        float height)
Overrides:
onResize in class Shape

rect

protected final RectF rect()

clone

public RectShape clone()
                throws CloneNotSupportedException
Overrides:
clone in class Shape
Throws:
CloneNotSupportedException


Copyright © 2008-2010. All Rights Reserved.