Tuning mechanisms in optofluidics