Refresh teechart

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Chen
Newbie
Newbie
Posts: 43
Joined: Tue Mar 11, 2008 12:00 am
Contact:

Refresh teechart

Post by Chen » Tue Oct 07, 2008 4:37 pm

Hi,

Which is the best way to refresh tee chart ?

doInvalidate() ?
repaint()?
refreshControl()?
revalidate() ?
doLayout() ?

Thanks,
Varun

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Oct 08, 2008 9:46 am

Hi Varun,

I don't think there are very important differences between doInvalidate(), repaint() and refreshControl() as all end up calling Component.java's repaint method. doInvalidate() and repaint() do exactly the same. While refreshControl() may be a little more eficient since it does some previous checkings as whether the control should be rendered or not.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply