Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Optimize the positioning of controls onto StyledText(I need an ideea on how to have faster drawing in PaintObjectListener)
icon4.gif  Optimize the positioning of controls onto StyledText [message #1041715] Mon, 15 April 2013 12:58
aaa ass is currently offline aaa assFriend
Messages: 4
Registered: April 2013
Junior Member
I need to "setLocation" to many controls onto "StyledText" when "paintObject" method of "PaintObjectListener" is fired.
Inside I find and store the positions as "Point" into arrays and after all the positions are stored then I run a "for" loop with my lists of "controlls[i].setLocation(position.get(i));"
The problem I face is that having many controls to draw they appear on the "StyledText" one after another with a speed depending on their number(many=very slow).
After I analyzed this issue with "VisualVM 1.3.5" It appears that I have this:
h ttp://img818.imageshack.us/img818/7188/66544635.png

Can someone please tell me how can I draw all the controls at the same time and faster?

Thank you
Previous Topic:Horizontal scroll bar for table widget
Next Topic:Collapsible Split Form
Goto Forum:
  


Current Time: Thu Dec 18 04:18:22 GMT 2014

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

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