Forums

Full Version: indented tree layout with textlabel in rectangular box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good morning,

here comes a rawish flapjack from my lab.
What I tried to achieve is replacing the circular nodes of the indented tree layout from the flare.demos package with a rectangular box containg a text label. In addition I wanted to draw collapsed nodes in a different color. The attached demo seems to do the job but I am not particular happy with it.
In this implementation it is necessary to update the shape position of a node when its color is changed which seems to indicate that there is something strange going on Wink

[attachment=148]

Feedback highly appreciated

Cheers

martin

There is a hopefully improved version of this which you can find in the reply to this thread
Good morning,

it looks like I found a better implementation for this.

Rather using the Shapes.BLOCK shape to draw the rectangular box, this new solutions just adds an additional RectSprite to the NodeSprite and uses this to draw the box. You find this new version as attachment to this reply, feedback of course always appreciated

cheers

martin


requires flare version 2008.07.29 or higher
This was really helpful to me! I learned alot about putting together a visualization in flare Smile

Btw I sent you a PM! Keep up all the good examples!
Reference URL's