Can graphiti support diagrams with fixed layouts? [message #663050] |
Sat, 02 April 2011 18:56 |
Eclipse User |
|
|
|
Originally posted by: wbeckwith.gmail.com
We have a custom gui editor, I'm thinking of trying to redo with
graphiti and it looks like graphiti can handle everything except I
haven't seen if it can handle diagrams where the layout of elements is
fixed. By fixed I mean the user can't place a pictogram element
wherever they want. They choose the element and we choose the position.
Also we use the draw2d equivalent of the Manhattan Router for drawing
connections between elements so that they don't overlap.
If graphiti can handle both situations then it looks like a great
candidate for handling our gui.
Wb
|
|
|
|
|
|
Re: Can graphiti support diagrams with fixed layouts? [message #663640 is a reply to message #663075] |
Wed, 06 April 2011 01:21 |
Eclipse User |
|
|
|
Originally posted by: wbeckwith.gmail.com
Thanks Jos,
So simple yet hard to think of doing when new to the API.
Wb
On 4/3/2011 4:33 AM, Jos Warmer wrote:
> Wendell,
>
> We have built several Graphiti editors where the layout is fully
> automated. So this is perfectly possible. You have to make sure that the
> FeatureProvider defines no features for everything that has to do with
> layout.
> We have redefined the following methods to return null:
> getReconnectionFeature(), getMoveBendpointFeature(),
> getResizeShapeFeature(), getMoveAnchorFeature(),
> getAddBendpointFeature(), getMoveShapefeature(),
> getMoveConnectionDecoratorFeature(). This effectively ensures that the
> user cannot change anything in the layout.
>
> Jos
|
|
|
Re: Can graphiti support diagrams with fixed layouts? [message #663642 is a reply to message #663261] |
Wed, 06 April 2011 01:30 |
Eclipse User |
|
|
|
Originally posted by: wbeckwith.gmail.com
Thanks for the reference, the only bad part seems to be that the
additional of a custom feature will expose this in the context menu,
according to the FAQ entry and this is not something we want users to
need to control/invoke.
Wb
On 4/4/2011 8:13 AM, Michael Wenz wrote:
> The Manhattan routing question still seems to be open:
> Graphiti provides ManhattanConnections that could be used for that
> purpose. In order to make them non-overlapping, you would use a standard
> layouting library, e.g. the one that is provided with GEF. There's an
> example how to do that in the FAQ section of our Eclipse page (under
> documenation).
>
> Michael
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03394 seconds