I am working on Polygon Dragging , also Resizing of Polygon. I can draw rectangle using org.eclipse.draw2d.RectangleFigure and I am able to Drag it, I added MouseMotionListener and MouseListener to org.eclipse.draw2d.RectangleFigure.
but
while trying same thing for Polygon. it does not work. mouseDragged event gets called when i try to drag the polygon, but it does not move.
If you use a
org.eclipse.draw2d.PolygonShapeinstead of aorg.eclipse.draw2d.Polygonit should work as you expect it to.