Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Reset ScrollPane
Reset ScrollPane [message #202893] Mon, 14 November 2005 22:05 Go to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Hi all,

I have a ScrollPane where I put my root figure which in turns has a node
and a connection layer. After drawing all my nodes and connections, the
root figure gets very big and the vertical and horizontal scroll bars
automatically appear in the ScrollPane. The application has a filter which
may be used to reduce the number of displayed nodes. So, after starting
the application, the user applies one filter and the number of nodes goes
down to a few nodes. The problem is that the scroll bars are not updated.
Even if there are just 2 or 3 nodes, the user can scroll the pane as if
all the other nodes were still there. How do I reset the status of the
scroll pane to reconsider the new content and then hide the bars
accordingly? I've already tried to invalidate the ScrollPane but it didn't
work.

Thanks in advance
Re: Reset ScrollPane [message #203169 is a reply to message #202893] Fri, 18 November 2005 19:24 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

When editparts are filtered, are the figures being removed or just being
hidden? XYLayout's probably including hidden figures in its layout as well.
Overriding its getConstraint() method to return null for hidden figures
might fix the problem.

"Cleverson Schmidt" <cleversons@gmail.com> wrote in message
news:627dd6a04366c6c3ef73e36e7b4136dd$1@www.eclipse.org...
> Hi all,
>
> I have a ScrollPane where I put my root figure which in turns has a node
> and a connection layer. After drawing all my nodes and connections, the
> root figure gets very big and the vertical and horizontal scroll bars
> automatically appear in the ScrollPane. The application has a filter which
> may be used to reduce the number of displayed nodes. So, after starting
> the application, the user applies one filter and the number of nodes goes
> down to a few nodes. The problem is that the scroll bars are not updated.
> Even if there are just 2 or 3 nodes, the user can scroll the pane as if
> all the other nodes were still there. How do I reset the status of the
> scroll pane to reconsider the new content and then hide the bars
> accordingly? I've already tried to invalidate the ScrollPane but it didn't
> work.
>
> Thanks in advance
>
Previous Topic:Own Layout Manager ClientArea issue
Next Topic:how to create a connection?
Goto Forum:
  


Current Time: Thu Dec 12 11:10:17 GMT 2024

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

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

Back to the top