An example can be found here compass.java. Api here
it will change the position of your canvaz(except scale) either x or y if we translate & scale then it is transformation in general terminology