You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to piccolo...@googlegroups.com
Hello everybody I am planning to build something like a graph editor supporting directed links between square-shaped nodes. I started with the nice little GraphEditorExample from the Piccolo distribution, but know I'd like to introduce arrorheads for the link lines. The heads should be placed at the point where the line crosses a node border (see attached figure). From my first design steps, it seems to become a pretty complecated mathematical challenge to calculate the coordinates of these points. Is there any kind of support for these kinds of calculations?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to piccolo...@googlegroups.com
Hi Martin Thanks for your answer. Yes, I only have to care for sqares. Funny that AWT's Rectangle2D.Double class, which PBounds derives from, has functions to find out, *if* a line intersects with a rectangle, but not *where* they intersect ;-)
Anyway. I copied some code from the net which does the job.