Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Does paintFigure method get called all the time?
Does paintFigure method get called all the time? [message #224078] Wed, 11 October 2006 13:16 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: Does paintFigure method get called all the time? [message #224188 is a reply to message #224096] Thu, 12 October 2006 06:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello Mr.Pratik Shah,

Thanks a lot. Your input was of great help to me.

I have solved the issue. Actually i was calling repaint inside the
paintFigure method in few places.

Thanks again,
Best Regards
Shruthi
Re: Does paintFigure method get called all the time? [message #224228 is a reply to message #224188] Thu, 12 October 2006 10:06 Go to previous message
Eclipse UserFriend
Originally posted by: puneet82sri.sify.com

hi i am newbiew to gef. Can u tel me how can i develop a basic gef plugin.
I followed below link:
http://www13.plala.or.jp/observe/GEF/GEF_StandAlone.html
but i am <u>not able to run</u> the plugin.
Thanks
Puneet Srivastava
Previous Topic:How to run gef plugin
Next Topic:Call Cursor Position & IFigure @ ConnectionCreateEditPolicy
Goto Forum:
  


Current Time: Fri Apr 26 14:09:01 GMT 2024

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

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

Back to the top