Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [GEF4] layout in mvc
[GEF4] layout in mvc [message #1715306] Sat, 21 November 2015 13:26
Frank Benoit is currently offline Frank BenoitFriend
Messages: 136
Registered: July 2009
Senior Member

as far as i understood, i can implement the interfaces in o.e.g.layout.
In the beginning, i just want to calculate the positions of the part's visuals.

without layout, i apply the position in the refreshVisual:
Affine affine = getAdapter(FXTransformPolicy.TRANSFORM_PROVIDER_KEY).get();

Now, i guess for using layout, i need to take my model elements, and build a hierarchy of objects, implementing the IEntityLayout or ISubgraphLayout interfaces.
Then i need an implementation of ILayoutAlgorithm and in applyLayout, i set the calculations with LayoutProperties.setLocation().

And then,
1. how is this layout applied in Gef4.MVC
2. how do those positions find their way to be reflected in the UI?


Previous Topic:paintFigure
Next Topic:[GEF4] Manifest error
Goto Forum:

Current Time: Mon Nov 19 00:33:03 GMT 2018

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

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

Back to the top