drawing arrow lines between swt components/jface viewers

109 views
Skip to first unread message

Ani

unread,
Jan 30, 2011, 11:51:02 PM1/30/11
to vogella
hi,

following http://www.vogella.de/articles/EclipseZest/ar01s05.html ,

i've a multi page editor part with a scrolled composite and have 2
tree viewers along with few labels on it. and want to draw mapping
lines to interconnect them.
the requirement is :-

-- if i drag mouse from one tree viewer item to drop on a swt label or
on another tree viewer item, it should draw mapping lines with arrow
head on the destination.
--also the tree items may connect to other items in the same tree

But i'm not sure how to start with it. can you please give me some
pointers!

should i first make a dragdetectlistener for each control for the
mouse drag part?
should i pick zest / draw2d / gef?

i'm totally confused...kindly help.

thanks,
ani

Lars Vogel

unread,
Jan 31, 2011, 2:57:14 AM1/31/11
to vog...@googlegroups.com
Hi,

I suggest you asked your question in the Eclipse Forum.

Best regards, Lars

2011/1/31 Ani <mous...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "vogella" group.
> To post to this group, send email to vog...@googlegroups.com.
> To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vogella?hl=en.
>
>

--
Lars
http://www.vogella.de - Tutorials about Java, Eclipse and Web programming
http://www.twitter.com/vogella - Lars on Twitter

Reply all
Reply to author
Forward
0 new messages