android.graphics.drawable.shapes
Class Shape

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

public abstract class Shape
extends Object
implements Cloneable


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

Constructor Detail

Shape

public Shape()
Method Detail

getWidth

public final float getWidth()

getHeight

public final float getHeight()

draw

public abstract void draw(Canvas canvas,
                          Paint paint)

resize

public final void resize(float width,
                         float height)

hasAlpha

public boolean hasAlpha()

onResize

protected void onResize(float width,
                        float height)

clone

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


Copyright © 2008-2012. All Rights Reserved.