Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » drawing arrow lines between swt components/jface viewers
drawing arrow lines between swt components/jface viewers [message #651638] Tue, 01 February 2011 00:44 Go to next message
Ani  is currently offline Ani Friend
Messages: 37
Registered: November 2010
Member
hi,

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 now. appreciate any help...

thanks,
ani
Re: drawing arrow lines between swt components/jface viewers [message #653777 is a reply to message #651638] Fri, 11 February 2011 06:48 Go to previous messageGo to next message
aviral is currently offline aviralFriend
Messages: 4
Registered: February 2011
Location: Bangalore
Junior Member

I think you can create a composite with Sash for ur Left and Right hand side components and put them on a canvas then u can use draweLine API to drawl links on SWT canvas.

You can always go to GEF connection anchors and that would give you more options .
Re: drawing arrow lines between swt components/jface viewers [message #654077 is a reply to message #653777] Mon, 14 February 2011 02:06 Go to previous messageGo to next message
Ani  is currently offline Ani Friend
Messages: 37
Registered: November 2010
Member
hello,

thanks for the response.

but i think drawline api draws a static line whereas i want a movable and resizable line which moves when i move my components.

do u have any idea?

thanks,
Re: drawing arrow lines between swt components/jface viewers [message #1240821 is a reply to message #654077] Fri, 07 February 2014 05:22 Go to previous message
Sayeeduddin Syed is currently offline Sayeeduddin SyedFriend
Messages: 1
Registered: February 2014
Junior Member
Hi Ani,

You got any solution for this problem?

Thanks
Previous Topic:dynamic ContributionItems in toolbar are ignored completely
Next Topic:Source Provider State ignored by Handler
Goto Forum:
  


Current Time: Fri Apr 19 22:58:48 GMT 2024

Powered by FUDForum. Page generated in 0.03281 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top