Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Repainting the figure
Repainting the figure [message #223661] Wed, 04 October 2006 04:50 Go to next message
Eclipse UserFriend
Originally posted by: krate.softsystems.com

Hey

I am creating a graphical display using GEF. At a time I am painting only
the screen area which is visible. What I am observing is : There is a
Ruler available on the graph. I have created a MyRulerFigure class which
extends Figure. The problem is if I keep on scrolling towards right I am
seeing all the markings on the ruler [say, 100, 200...] properly. But if
now I scroll back towards left the markings disappear from the ruler. The
weird part is if I select the Ruler the markings appear.
It seems to be some refresh delay when painting the ruler.
What should I do to make it synch with the scrolling ?

Thanks !
Krate
Re: Repainting the figure [message #223686 is a reply to message #223661] Wed, 04 October 2006 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

What place better to look for this than in GEF's ruler implementation?

I'll save you the trouble this time though. You can force a refresh
rightaway by invoking getUpdateManager().performUpdate().

"Krate" <krate@softsystems.com> wrote in message
news:c7bd2428ba29a943a2b52dd87a997126$1@www.eclipse.org...
> Hey
>
> I am creating a graphical display using GEF. At a time I am painting only
> the screen area which is visible. What I am observing is : There is a
> Ruler available on the graph. I have created a MyRulerFigure class which
> extends Figure. The problem is if I keep on scrolling towards right I am
> seeing all the markings on the ruler [say, 100, 200...] properly. But if
> now I scroll back towards left the markings disappear from the ruler. The
> weird part is if I select the Ruler the markings appear.
> It seems to be some refresh delay when painting the ruler.
> What should I do to make it synch with the scrolling ?
>
> Thanks !
> Krate
>
Re: Repainting the figure [message #223825 is a reply to message #223686] Thu, 05 October 2006 04:35 Go to previous message
Eclipse UserFriend
Originally posted by: krate.softsystems.com

Hey Pratik

Thanks a lot ! Will try that out.

Krate
Previous Topic:GEF development frozen?
Next Topic:Make both viewers of same size?
Goto Forum:
  


Current Time: Fri Apr 26 16:31:22 GMT 2024

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

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

Back to the top