Does paintFigure method get called all the time? [message #224078] |
Wed, 11 October 2006 13:16 |
Eclipse User |
|
|
|
Originally posted by: shruthi.cn.in.bosch.com
Hello everybody,
I have a question on the protected void paintFigure(Graphics graphics)
method.
I have a GEF project where i draw many diagrams on the gef editor.
I observed that paintFigure method is called all the time when the
diagrams are displayed and whether you make a mouse move or not. Due to
this, the "CPU usage" goes to 100%.
Is this the expected behaviour of paintFigure method or am i doing
something wrong in the project?
If its the expected behaviour, is there a way to avoid this?
Thanks,
Best Regards
Shruthi
|
|
|
Re: Does paintFigure method get called all the time? [message #224096 is a reply to message #224078] |
Wed, 11 October 2006 15:23 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
It's probably because you're doing something in your paintFigure() method
that's forcing a repaint.
"shruthi" <shruthi.cn@in.bosch.com> wrote in message
news:e7f14b829dee3830f48e91a386d99231$1@www.eclipse.org...
> Hello everybody,
>
> I have a question on the protected void paintFigure(Graphics graphics)
> method.
>
> I have a GEF project where i draw many diagrams on the gef editor.
> I observed that paintFigure method is called all the time when the
> diagrams are displayed and whether you make a mouse move or not. Due to
> this, the "CPU usage" goes to 100%.
>
> Is this the expected behaviour of paintFigure method or am i doing
> something wrong in the project?
>
> If its the expected behaviour, is there a way to avoid this?
>
> Thanks,
> Best Regards
> Shruthi
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03244 seconds