Code example for Canvas

Methods: drawCircle, drawLine

0
		final int width = mappointcenter.x * 2;
 
		final int height_2 = mappointcenter.y;
		final int width_2 = mappointcenter.x;
 
		canvas.drawCircle(width_2, height_2, this.mCenterCircleRadius, this.mPaint);
 
		/* Draw line from left to the centercircle. */ 
		canvas.drawLine(0, height_2, width_2 - this.mCenterCircleRadius, height_2, this.mPaint);
 
		/* Draw line from right to the centercircle. */ 
		canvas.drawLine(width_2 + this.mCenterCircleRadius, height_2, width, height_2, this.mPaint);
 
		/* Draw line from top to the centercircle. */ 
		canvas.drawLine(width_2, 0, width_2, height_2 - this.mCenterCircleRadius, this.mPaint);
 
		/* Draw line from bottom to the centercircle. */ 
		canvas.drawLine(width_2, height_2 + this.mCenterCircleRadius, width_2, height, this.mPaint);
	} 
 
	// =========================================================== 
	// Methods 
	// ===========================================================