Re: [flexcoders] invalidateDisplayList()
In your updateDisplayList() function, you can add an if clause to detect which part should be redrawn.Something like :if( dotChanged ){ //do redraw}Jeremy. On 7/25/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Hi, Does calling invalidateDisplayList() on a control mean that *everything* (including parents) gets re-drawn, or just the children? I have something similar to Ely Greenfield's RangeSelector class ( http://demo.quietlyscheming.com/overlayDemo/), but the mousemove event seems to cause my PlotSeries to re-draw too. This means, when I have 1000 points on my chart, the draggable box is very sluggish. I thought a control's updateDisplayList() would only be called if something on that actual control changed? Thanks, Danny The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] invalidateDisplayList()
That's not really a suitable fix. The invalidateDisplayList()/updateDisplayList() effectively does that already. updateDisplayList() on gets called if it's been invalidated. My problem is that when I call invalidateDisplayList() inside my charts annotation class, it also causes my PlotSeries to be invalidated, and redraw. I can work around it, but I'm not sure if this is supposed to happen, or there is an error in my code. If calling invalidateDisplayList() is supposed to invalidate the entire application tree (include parents, siblings and children), then I will have to change my PlotSeries.updateDisplayList() to draw to a new graphics object, and just feed that up unless I know the data has changed. I'm not convinced the behaviour I'm seeing is correct though :-( Surely invalidating one object should just cause itself (and children) to be redrawn? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy LuSent: 25 July 2006 14:53To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] invalidateDisplayList() In your updateDisplayList() function, you can add an "if" clause to detect which part should be redrawn.Something like :if( dotChanged ){ //do redraw}Jeremy. On 7/25/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Hi, Does calling invalidateDisplayList() on a control mean that *everything* (including parents) gets re-drawn, or just the children? I have something similar to Ely Greenfield's RangeSelector class ( http://demo.quietlyscheming.com/overlayDemo/), but the mousemove event seems to cause my PlotSeries to re-draw too. This means, when I have 1000 points on my chart, the draggable box is very sluggish. I thought a control's updateDisplayList() would only be called if something on that actual control changed? Thanks, Danny The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] invalidateDisplayList()
Kinda weird, this is my understaning too, but I never dig deep enough into those charting widgets, maybe things are different in there.Have you tried the FlexComponents list also hosted on Yahoo (lead by Ted Patrick) ? most component gurus are there. Jeremy. Surely invalidating one object should just cause itself (and children) to be redrawn? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy LuSent: 25 July 2006 14:53To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] invalidateDisplayList() In your updateDisplayList() function, you can add an if clause to detect which part should be redrawn.Something like :if( dotChanged ){ //do redraw}Jeremy. On 7/25/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Hi, Does calling invalidateDisplayList() on a control mean that *everything* (including parents) gets re-drawn, or just the children? I have something similar to Ely Greenfield's RangeSelector class ( http://demo.quietlyscheming.com/overlayDemo/), but the mousemove event seems to cause my PlotSeries to re-draw too. This means, when I have 1000 points on my chart, the draggable box is very sluggish. I thought a control's updateDisplayList() would only be called if something on that actual control changed? Thanks, Danny The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] invalidateDisplayList()
Calling invalidateDisplayList() on a control does not invalidate its ancestors. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny Sent: Tuesday, July 25, 2006 4:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] invalidateDisplayList() Hi, Does calling invalidateDisplayList() on a control mean that *everything* (including parents) gets re-drawn, or just the children? I have something similar to Ely Greenfield's RangeSelector class (http://demo.quietlyscheming.com/overlayDemo/), but the mousemove event seems to cause my PlotSeries to re-draw too. This means, when I have 1000 points on my chart, the draggable box is very sluggish. I thought a control's updateDisplayList() would only be called if something on that actual control changed? Thanks, Danny The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___