Repainting the figure [message #223661] |
Wed, 04 October 2006 04:50 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02880 seconds