android.graphics.drawable.shapes
Class Shape
java.lang.Object
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()
|
Shape
public Shape()
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.