The volume is changed by adjusting the postion of the piston using the red screw. This is an example of Boyle's law.