Tim,

 

I think this would best be done via the Drawing API embedded into SWF Icons in Flex 1.5 and Flex 2.

 

Node Icons would need to draw this:

 

-----ICON

 

Container Icons would need to draw this:

 

-----ICON

        |

        |

        |

 

Since each Icon knows its position, it can readily draw the lines consistently.

 

The trick here is that icons are refreshed in the Tree whenever the view changes. As they are attached anew, they would simply render out the state of the tree.

 

The other route would be to use the drawing API and render the lines in a MC behind the tree based on the state of the DataProvider. I think this route would be more difficult as you would need to draw the nested state of all nodes at one time.

 

With the prior method only the changes portion of the drawing changes as needed. I believe that depths get higher as you move south on the tree. If a parent draws a line all sibling and child nodes will naturally be above the drawn lines.

 

My 2 cents,

 

Ted Patrick

Cynergy Systems

 

 

 

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sufibaba
Sent: Monday, January 02, 2006 12:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ANY FLEX TREE GURUS?

 

Happy New years to All,

Does anyone know how to Modify the Flex2 Tree component to display connector lines -- Like the one shown under "Rich Graphics" at the following Link:

http://_javascript_.cooldev.com/scripts/cooltree/demos/superdemo/

I know that flash is much more capable than _javascript_ and the menu system can be even more robust than _javascript_ or Java. Is it possible to do this in Flex2.

Cheers,

Tim




--
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





--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date: 1/2/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.10/218 - Release Date: 1/2/2006

Reply via email to