android.graphics.drawable.shapes
Class PathShape

java.lang.Object
  extended by android.graphics.drawable.shapes.Shape
      extended by android.graphics.drawable.shapes.PathShape
All Implemented Interfaces:
Cloneable

public class PathShape
extends Shape


Constructor Summary
PathShape(Path path, float stdWidth, float stdHeight)
           
 
Method Summary
 PathShape clone()
           
 void draw(Canvas canvas, Paint paint)
           
protected  void onResize(float width, float height)
           
 
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

PathShape

public PathShape(Path path,
                 float stdWidth,
                 float stdHeight)
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

clone

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


Copyright © 2008-2012. All Rights Reserved.