Zest layouts in GEF viewer [message #242607] |
Tue, 29 April 2008 08:39  |
Eclipse User |
|
|
|
Originally posted by: ftordi.smaeur.com
Hi there!
I needs to display a graph structure into a GEF graphical viewer and my
node size has to be fixed by the application.
My problem is that I use Zest Layouts and I don't how to compute the size
of the whole area to fit my graph.
The size of the container should be resized depending on contained nodes.
That's why the method applyLayout(...) in Zest LayoutAlgorithms cause to
me some troubles.The node shouldn't overlaps.
The problem is that computing the size is totally depends on the layout
applied and I would like to know if it's possible for Zest to resize
automatically my area.
- I try to use the layout style ENFORCE_BOUNDS but it resize a little and
all Figures overlaps.
- I try to use CompositeLayout with Horizontal shift with the
DirectedGraphLayout but bounds are not really enforced the figure is
calculated in a negative zone.
- I try Horizontal shift with other layouts but the result seems to be
unchanged. All contained figures are size fixed that's why the
NO_LAYOUT_NODE_RESIZING.
Is there a method to dynamically resize or compute the size of the area?
I've exported my application in an RCP app, can you take a look :
- change the layout algorithm by selecting algorithm of the combobox into
the upper side and see that my area size is bad calculated.
-I've attached the source code in the jar, the bad computation is located
in com.sma.ui.pert.model.ScheduleModel:applyLayout()
Here is a link of my RCP app and source code:
http://download374.mediafire.com/l3fsdsibyrfg/gtzl2x9ctcp/Pe rt.zip
|
|
|
|
Re: Zest layouts in GEF viewer [message #242649 is a reply to message #242633] |
Wed, 30 April 2008 09:32  |
Eclipse User |
|
|
|
Originally posted by: ftordi.smaeur.com
Hi,
Thanks for your answer
The problem is the example use only a directed graph layout and I have to
use all off zest layouts.
I try Horizontalshift with other layouts but Spring layout and radial
layout
don't looks like something. The only way seems to be calculating the size
that I should use.
Is there a way to calculate this size properly?
cheers,
Fabien
Qinxian wrote:
> Hi,
> Maybe this would give some hint.
> http://www.eclipse.org/pde/incubator/dependency-visualizatio n/index.php
> which use zest.
> Cheers,
> Qinxian
> Fabien åé:
>> Hi there!
>>
>> I needs to display a graph structure into a GEF graphical viewer and my
>> node size has to be fixed by the application.
>> My problem is that I use Zest Layouts and I don't how to compute the
>> size of the whole area to fit my graph.
>> The size of the container should be resized depending on contained
>> nodes. That's why the method applyLayout(...) in Zest LayoutAlgorithms
>> cause to me some troubles.The node shouldn't overlaps.
>>
>> The problem is that computing the size is totally depends on the layout
>> applied and I would like to know if it's possible for Zest to resize
>> automatically my area.
>>
>> - I try to use the layout style ENFORCE_BOUNDS but it resize a little
>> and all Figures overlaps.
>> - I try to use CompositeLayout with Horizontal shift with the
>> DirectedGraphLayout but bounds are not really enforced the figure is
>> calculated in a negative zone.
>> - I try Horizontal shift with other layouts but the result seems to be
>> unchanged. All contained figures are size fixed that's why the
>> NO_LAYOUT_NODE_RESIZING.
>>
>> Is there a method to dynamically resize or compute the size of the area?
>> I've exported my application in an RCP app, can you take a look : -
>> change the layout algorithm by selecting algorithm of the combobox into
>> the upper side and see that my area size is bad calculated.
>> -I've attached the source code in the jar, the bad computation is located
>> in com.sma.ui.pert.model.ScheduleModel:applyLayout()
>>
>> Here is a link of my RCP app and source code:
>>
>> http://download374.mediafire.com/l3fsdsibyrfg/gtzl2x9ctcp/Pe rt.zip
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03253 seconds