Code example for ComposePathEffect

0
	      e[0] = null; // no effect
	      e[1] = new CornerPathEffect(10);
	      e[2] = new DashPathEffect(new float[] { 10, 5, 5, 5 }, phase);
	      e[3] = new PathDashPathEffect(makePathDash(), 12, phase,
	          PathDashPathEffect.Style.TRANSLATE);
	      e[4] = new ComposePathEffect(e[2], e[1]);
	      e[5] = new ComposePathEffect(e[3], e[1]);
	    } 
 
	    public SampleView(Context context) {
	      super(context);
	      setFocusable(true);
	      setFocusableInTouchMode(true);
 
	      mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
	      mPaint.setStyle(Paint.Style.STROKE);
	      mPaint.setStrokeWidth(6);
 
	      mPath = makeFollowPath();
 
	      mEffects = new PathEffect[6];