Code example for Path

Methods: quadTorewind

0
      onTouchDown( x, y );
    } 
  } 
 
  private void drawQuadTo( float curX, float curY, float controlPointX, float controlPointY ) {
    linePath.quadTo( controlPointX, controlPointY, curX, curY );
    drawPath(); 
    invalidateDrawingRegion( curX, curY );
    lastX = curX;
    lastY = curY;
  } 
 
  private void onTouchUpOrCancel( float x, float y ) {
    drawQuadTo( x, y, x, y );
    sendPolylineRequest(); 
    linePath.rewind();
    recordedCoords.clear();
  } 
 
  private void record( float x, float y ) {
    IWidgetToolkit toolkit = activity.getProcessor().getWidgetToolkit();