Code example for Path

Methods: rewind

0
this.mCanvas = canvas;
      this.mScreenPoint = new Point();
      mProjection = mapView.getProjection();
 
      this.mPath.rewind();
      this.mShader = null;
      transformSegmentToPath(); 
 
      // Just the rendering bits left to do 
      Paint routePaint = new Paint();
      routePaint.setPathEffect( new CornerPathEffect( 10 ) );
//      Log.d( TAG, "Drawing color is "+trackColoringMethod ); 
      switch (trackColoringMethod)
      { 
         case ( DRAW_CALCULATED ):
         case ( DRAW_MEASURED ):
            routePaint.setShader( this.mShader );
            break; 
         case ( DRAW_RED ):
            routePaint.setColor( Color.RED );