Problem with drawing figures. [message #184041] |
Thu, 09 June 2005 16:38 |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hi,
I am trying to implement a Grid type layout based on the XYlayout.
I use a CoordinateManager to help with this.
I have overriden addChildVisual in the main EditPart to make a call to
ConstraintManager.
At its most basic it is very simple.
I add Figures and they appear under each other in a Column like layout.
If I want to add Parallel Figures it works fine too. This figure appears
alongside the currently selected figure in a row like layout.
The problem occurs when I try to add a Figure in the middle of other.
For example I have 2 Figures one under another.
I select the first figure and click Add.
What should happen is that a Figure gets added between the existing two so
the second Figure moves down (similar to moving down a row).
I'm not sure what the problem is but it seems like I need to redraw all
children.
refreshChildren(), refreshVisuals(), layoutManager.layout() etc etc have
been tried.
I'm not sure what to try next...any thoughts ?
Or anyone have an idea on an existing layout that could help ?
Thanks,
Alan.
|
|
|
Powered by
FUDForum. Page generated in 0.02478 seconds