Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Need more space for ZEST2 GraphNodes in GraphContainer(GraphContainer#setSize should resize the container without scaling the contained GraphNodes.)
Need more space for ZEST2 GraphNodes in GraphContainer [message #718751] Thu, 25 August 2011 05:00 Go to next message
Daniel Betz is currently offline Daniel Betz
Messages: 3
Registered: August 2011
Junior Member
Hello,

I use the 'ZEST 2' GraphContainer to cluster some Nodes.
I need space for much more nodes than the default provides.

If I try to resize the container with GraphContainer#setSize
the GraphContainer scales up with the content instead of providing
more space for more nodes (see attachements).

GraphContainer#setScale has no effect with a value < 1 and enlarges
the inner scroll pane with value > 1.

Any ideas ?
Re: Need more space for ZEST2 GraphNodes in GraphContainer [message #743671 is a reply to message #718751] Fri, 21 October 2011 12:49 Go to previous messageGo to next message
Ghislain Hude is currently offline Ghislain Hude
Messages: 2
Registered: October 2011
Junior Member
Hello Daniel,
Do you find a solution?
I have the same issue and this is really not user friendly to play with scroll bar when they are a lot of "sub node"... Sad

Ghis
Re: Need more space for ZEST2 GraphNodes in GraphContainer [message #749262 is a reply to message #743671] Tue, 25 October 2011 01:39 Go to previous messageGo to next message
Daniel Betz is currently offline Daniel Betz
Messages: 3
Registered: August 2011
Junior Member
Hello Ghis,

The attached version of GraphContainer is extended and bug fixed. Because
the visibility of attributes and members of this class is too restrictive
to facilitate this improvements through inheritance, the whole source
of ZEST needs to be included into the project on source level.

I threw away the code which implemented the old scaling behavior and added
the method setExpandedSize(double, double).

Regards
Daniel
Re: Need more space for ZEST2 GraphNodes in GraphContainer [message #753874 is a reply to message #749262] Sat, 29 October 2011 14:16 Go to previous messageGo to next message
Ghislain Hude is currently offline Ghislain Hude
Messages: 2
Registered: October 2011
Junior Member
Hello Daniel,

Thanks a lot Smile, this is a good news!
Do you know if a bug on this issue exist on eclipse?


Regards,
Ghis
Re: Need more space for ZEST2 GraphNodes in GraphContainer [message #753883 is a reply to message #753874] Sat, 29 October 2011 18:09 Go to previous messageGo to next message
Daniel Betz is currently offline Daniel Betz
Messages: 3
Registered: August 2011
Junior Member
Hello Ghis,

These bug reports are related to the limited extensibility of ZEST:


  • Bug 318485 - Zest extensibility
  • Bug 242920 - Zest does not permit easy subclassing of GraphContainer to customize open/close methods:


This bug report is specific to the extensibility of GraphContainer:


  • Bug 314819 - Make some methods of GraphContainer public so that it can be extended.


This bug report is related to container resizing:


  • Bug 238835 - computerContainerSize() hard codes minimum size and cannot be overridden


A lot of issues are gone with the elimination of the old scaling code.
I have more information about fixed issues in my repository log
but I have no access to it at the moment.

Regards
Daniel
Re: Need more space for ZEST2 GraphNodes in GraphContainer [message #761069 is a reply to message #753883] Mon, 05 December 2011 16:02 Go to previous message
George Araujo is currently offline George Araujo
Messages: 1
Registered: December 2011
Junior Member
Hello Daniel

I am currently using the modified GraphContainer class you posted here. It solved the problem, thanks a lot.
But I am having some issues with the layout inside of the containers.

1 - the scrollPane is quite bigger than it should be, and it starts showing the right of the container, but the nodes are drawn on the left part of it, so unless i manually scroll left the scrollPane, it is only showing half of the nodes inside of it.

2 - when i expand the first container, the graph loses its layout (there are 2 containers connected by an edge, and i am using the HorizontalShiftAlgorithm layout) and the second container goes below the first one

Any idea on how to solve these problems? Any advice is welcome
Previous Topic:Customizing GEF palette
Next Topic:Problem with drawing polygon using draw2d ScalablePolygonShape.
Goto Forum:
  


Current Time: Tue Sep 02 14:58:50 EDT 2014

Powered by FUDForum. Page generated in 0.03790 seconds