Forums

Full Version: RainbowEdge demo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This demo shows the implementation of a multicolor edge renderer.
It is based on a post by rythmic in the prefuse forum

http://sourceforge.net/forum/forum.php?t..._id=343013

Starting from rythmic post, the following features have been added
  • full multiple line support
  • arrow heads are drawn in multiple colors
  • curved edges
  • the edge width can be specified (or more precise the line width of one color)
While these new features required some changes of the original post, the essence and core of this demo is Rythmic's strategy of placing the beginning and end points of the multiline edges.

Included in this demo is also a new rendering of curved lines. This new rendering was necessary because the original edge renderer led to too much overlapping of the multiline edges in the case of curved edges.

[attachment=119]

cheers

martin
Im having some troubles with this one. The edges seems to no "hit" their respective nodes. ( The end of the egde is draw far outside the node-graphics). Any ideas?
Hi,

thanks for the feedback - finally some feedback I am so happy Big Grin.

Has anybody similar problems out there?

Can you post a little demo showing the problem or do you experience the problem with the rainbow demo itself?

Another problem is that I am abroad right now and my laptop broke, so most likely I will not be able to look into that in depth. Nevertheless a demo showing the problem would be for sure helpful to get this buggy behavior solved.

thanks

martin
I'll try to make a demo later, ended up not using the rainboweffect for this job. The main problem is think is when you use images _and_ text for your nodes. Prefuse seems to do some odd stuff when it comes to calculation of the size then.

Sorry for the late and small amount of info, but I'm kinda in a rush with this project now, so little time for bughunting elsewhere Wink
Hi klette,

sorry to hear that there are no rainbows over Berlin now. Big Grin

Since the rainbow edge renderer handles start and end point of an edge in a quite similar way, I can't really understand where the problems comes from. But I haven't actually tried it with more posh nodes using text and images. Most likely - as you already mentioned - this is an unexpected behavior of prefuse (at least unexpected from my side :rolleyesSmile

Maybe you can use the vegetarian pap forum to post the unexpected behavior if you have some further insights, for the case it is more a prefuse problem. Or otherwise as reply here

http://goosebumps4all.net/34all/bb/forum...php?fid=26

cheers

martin

Guest

That is very slick!
Reference URL's