Create Pie chart Figurehttps://www.eclipse.org/forums/index.php/mv/msg/454600/1010895/#msg_1010895
Is it possible to customize a figure in draw2d to have this shape depicted (see image)

I need the divisions to be re-sized dynamically based on a given data. Also, I need to add an image or label to each part. Finally, it should be possible to mouse click on any color as well as symbol. Is this possible???

Thanks,
Mok]]>Mokhtar Abdu2013-02-18T12:41:45-00:00Re: Create Pie chart Figurehttps://www.eclipse.org/forums/index.php/mv/msg/454600/1011793/#msg_1011793
You have to extend the Figure class and override its paintFigure() where you have to paint all that graphics based on the model state.
You have also to override its containsPoint() method to get mouse events properly work, see Ellipse figure for example.

Then just add a mouseListener to that figure and call whatever you want based on the position of the mouse pointer in the figure.]]>Jan Krakora2013-02-20T09:12:13-00:00