Code example for TextPaint

Methods: getTextSize

0
		return 4; 
	} 
 
	private int calculateXAxisDescriptionOffset() { 
		if (this.axisX != null && this.axisX.length > 0) {
			return (int) (this.textPaint.getTextSize() + AXIS_TEXT_PADDING);
		} 
		return 4; 
	} 
 
 
	private void drawGrid(Canvas canvas, float originX, float originY,
			float chartWidth, float chartHeight) {
		float stepY = chartHeight / GRID_HORIZONTAL_LINES;
		float stepX = chartWidth / GRID_VERTICAL_LINES;
		 
		// draw horizontal lines 
		for (int i = 1; i < GRID_HORIZONTAL_LINES; i++) {
			float posY =  originY - stepY * i;
			canvas.drawLine(originX, posY, originX + chartWidth, posY, this.gridPaint);