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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Lu
Sent: 25 July 2006 14:53
To: [email protected]
Subject: 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




__,_._,___

Reply via email to