Code example for CornerPathEffect

0
		paint.setStyle( Paint.Style.STROKE );
		paint.setAntiAlias( true );
		paint.setColor( DEFAULT_COLOR );
		paint.setStrokeWidth( 7 );
		paint.setShadowLayer( 4, 2, 2, 0x66000000 );
		paint.setPathEffect( new CornerPathEffect( 5 ) );
	} 
 
	public void setColor( int c ) {
		paint.setColor( c );
		invalidate();
	} 
 
	public void setCornerRadii( float r ) {
		paint.setPathEffect( new CornerPathEffect( r ) );
		invalidate();
	} 
	 
	public void setShadowLayer(float radius, float dx, float dy, int color){
		paint.setShadowLayer( radius, dx, dy, color );
	}