[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Draw2d Figure Translation

I think you should set the layout constraint in the layout if you use layout manager instead of modifying the figure coordinates directly. The flow should really be model->layout manager constraint-> figure.

Nhu

Manu wrote:
Hi all,

Still questions concerning Draw2D (intensive use of this cool API ;0).
My Draw2D chart needs translation. Figures are layed out using an XYLayout.
When translating a figure and next call repaint on the parent of the translated figure all is fine. The problem is that when next layout occurs, the figure,s bounds are recomputed using previous constraints by the XYLayout manager. Since the translate method only modifies figure's bounds and not associated constraints the figure comes back to its initial location.


Does any body already encountered this problem and have suggestions?
Thanks


Manu