Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Multiple calls (Multiple calling of paintFigure and setBounds methods in Figure classes)
Multiple calls [message #550862] Wed, 04 August 2010 10:14 Go to previous message
Deepak Singla is currently offline Deepak Singla
Messages: 27
Registered: December 2009
Junior Member
Hi,
In GEF application, I am using view objects as classes that extends the draw2d.Figure class.

Inside the classes I have implemented the paintFigure (graphics g) and setBound(Rect r) methods for setting colors property and bounds property for rectangles and other drawing object respectively.

Everything is working fine. But I am surprised that there are n number of calls for method setBound and paintFigure methods. It can hit the performance of my application.

Do you have any idea what could be the reason for this and any Idea to stop multiples calls to these method?

One More Thing I noticed about this behaviour: these method are called infinite time untill your view is displayed inside the editor. If you minimize your editor, the calling to these method stops. But when both are open simultaneously, the calling is going on...!!!!!!!!!!!!!!!!!!!!!!

Any Idea would be appreciated

[Updated on: Wed, 04 August 2010 11:39]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Question about views
Next Topic:Label inside compartment
Goto Forum:
  


Current Time: Sun May 19 04:21:57 EDT 2013

Powered by FUDForum. Page generated in 0.01656 seconds