Code example for Vector

Methods: clear

0
    private Paint mPaint;
     
   
    public void doClear() { 
    	// clear paths 
    	mSequences.clear();
    	doFullRedraw(mCanvas, mBitmap, true, true);
    	invalidate();
    } 
	      
	public void onRestoreInstanceState(Bundle savedInstanceState) {
		SignatureViewState s = (SignatureViewState)savedInstanceState.getSerializable(mStateID);
		mSequences = s.mSequences;
	} 
 
	public void onSaveInstanceState(Bundle outState) {
       	mSequences.add(mCurrentSequence);
    	mCurrentSequence = new PointSequence();
		SignatureViewState s = new SignatureViewState();
		s.mSequences = mSequences;
		outState.putSerializable(mStateID, s);