Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Scrollbars ignore connections and their labels
Scrollbars ignore connections and their labels [message #245615] Thu, 18 September 2008 19:02 Go to next message
Eclipse UserFriend
Originally posted by: felix.mayer.erdas.com

I have a GEF editor where some connections and their labels extend to the
left into an area with no other figure. The problem is that I can only
scroll to where the last normal figure ends, which cuts off the connections
and their labels. It seems like the scrollbar ignores the connection layer.
What can I do to make the scrollbar take the connection and their labels
into account?

Thanks, Felix
Re: Scrollbars ignore connections and their labels [message #245727 is a reply to message #245615] Fri, 03 October 2008 16:33 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Perhaps you add your layers to the root figure as children... Root figure
should really have one child - the contents figure. This contents figure
should have your primary, connection, feedback and etc. layers as its
children.
To answer this correctly I need to know your figure hierarchy and whether
you override anything in ScrollingGraphicalViewer and/or RootEditPart.
Hope this helps.

Cheers,
Alex
Re: Scrollbars ignore connections and their labels [message #246198 is a reply to message #245727] Sun, 16 November 2008 04:13 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Hello Alex,

I don't do anything fancy with the layers or the classes you mention. I use
basically the defaults and set a ScalableRootEditPart on the GraphicalViewer
of my editor. On the Viewport I set viewport.setContentsTracksHeight(true),
but that's about it apart from a KeyHandler and a context menu. The only
special thing is that some connections are routed first away from a node and
then come back to it. That's why I am so surprised about this behavior.

Thanks, Felix
Previous Topic:GEF structrogram editor
Next Topic:FigureCanvas and layouts
Goto Forum:
  


Current Time: Thu Apr 25 03:39:00 GMT 2024

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

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

Back to the top