Function overloading of setXY methods