@Override
	public void mouseClicked(MouseEvent arg0) 
	{
		if (!isLeftMouseButton(arg0))
			return;
		
		if (isRowNumber(arg0, 3))
		{
			if (isColNumber(arg0, 0))
			{
				tool.setToolNumber(Tool.ARROW);
			}
			else
			{
				tool.setToolNumber(Tool.LINE);
			}
		}
		
		if (isRowNumber(arg0, 4))
		{
			if (isColNumber(arg0, 0))
			{
				tool.setToolNumber(Tool.RECTANGLE);
			}
			else
			{
				tool.setToolNumber(Tool.FREEHAND);
			}
		}
		
		if (isRowNumber(arg0, 5))
		{
			if (isColNumber(arg0, 0))
			{
				tool.setToolNumber(Tool.CIRCLE);
			}
			else
			{
				tool.setToolNumber(Tool.ERASER);
			}
		}
		
		if (isRowNumber(arg0, 6))
		{
			if (isColNumber(arg0, 0))
			{
				tool.setToolNumber(Tool.OBJECT);
			}
		}
	}