Use of Pantograph

My parents visited us in Germany in the year 2013. This was their first time outside India and also their first time travelling in Trams. After observing the Pantograph of the Tram for some time my mom pointed at the Pantograph and said "That is used for raising the electric wires so that the Tram doesn't touch the wires, right? just like it's done with bamboo sticks when we have Pallakki (flower chariot processions) in our streets ."