How to draw a ploygon(hexagon)?

I want to draw a ploygon(hexagon),where is abase class for it?
and how to add a Listener for it?

Try Path::addPolygon