Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problem with drawing figures.
Problem with drawing figures. [message #184041] Thu, 09 June 2005 16:38
Eclipse UserFriend
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.
Previous Topic:Antialiasing
Next Topic:palette reload
Goto Forum:
  


Current Time: Fri Apr 26 15:59:26 GMT 2024

Powered by FUDForum. Page generated in 0.03814 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top