Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Visualize connections when Source and Target(EditParts) are the same.
Visualize connections when Source and Target(EditParts) are the same. [message #162065] Sat, 18 December 2004 13:23 Go to next message
Eclipse User
Originally posted by: alimail.onlinehome.de

Hello everybody,

I want to visualize a state diagram with gef. When nodes are states and
connections are (state-)transitions there is exists also
"self"-Transitions, a connection where source a target node is the same.
My standard visualization (polyLine with Arrow-Decoration) paints
only an arrow at the bottom of the node-figure. But i want to visualize
it like this:

node<--
| |
| |
-------
my hope is that someone has already coded somethign similar like this
above... Any suggestions?

Alex
Re: Visualize connections when Source and Target(EditParts) are the same. [message #162133 is a reply to message #162065] Mon, 20 December 2004 05:17 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik Shah
Messages: 1077
Registered: July 2009
Senior Member
You could add some bendpoints to the connection when you create it. The
EDiagram example in the repository does this. It's not a very elegant
solution though, because then when you move the node, the bendpoints stay at
their original location.

"alitari" <alimail@onlinehome.de> wrote in message
news:cq1b4s$5m5$1@www.eclipse.org...
> Hello everybody,
>
> I want to visualize a state diagram with gef. When nodes are states and
> connections are (state-)transitions there is exists also
> "self"-Transitions, a connection where source a target node is the same.
> My standard visualization (polyLine with Arrow-Decoration) paints only an
> arrow at the bottom of the node-figure. But i want to visualize it like
> this:
>
> node<--
> | |
> | |
> -------
> my hope is that someone has already coded somethign similar like this
> above... Any suggestions?
>
> Alex
Re: Visualize connections when Source and Target(EditParts) are the same. [message #162572 is a reply to message #162065] Wed, 22 December 2004 15:42 Go to previous messageGo to next message
Eclipse User
Originally posted by: none.us.ibm.com

You need to identify this special case in your connection router, and create
the loopback points.

"alitari" <alimail@onlinehome.de> wrote in message
news:cq1b4s$5m5$1@www.eclipse.org...
> Hello everybody,
>
> I want to visualize a state diagram with gef. When nodes are states and
> connections are (state-)transitions there is exists also
> "self"-Transitions, a connection where source a target node is the same.
> My standard visualization (polyLine with Arrow-Decoration) paints
> only an arrow at the bottom of the node-figure. But i want to visualize
> it like this:
>
> node<--
> | |
> | |
> -------
> my hope is that someone has already coded somethign similar like this
> above... Any suggestions?
>
> Alex
Re: Visualize connections when Source and Target(EditParts) are the same. [message #1063881 is a reply to message #162572] Fri, 14 June 2013 17:08 Go to previous message
abdelhay abdou is currently offline abdelhay abdou
Messages: 4
Registered: June 2013
Junior Member
Hello every one!
it's 4 years and I'm fined in the same problem, also I want create this node as polyline, that needn't 2 others nodes to connect, just one (the containment) please did you solve this case, i want know how you did it



Previous Topic:Draw2D 3.9 with Eclipse 4.2.1 has incorrect rendering output
Next Topic:Layouting a large number of draw2d widgets in a Canvas
Goto Forum:
  


Current Time: Fri Sep 19 06:04:42 GMT 2014

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

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