Home » Eclipse Projects » GEF » connections with right angle bends
| connections with right angle bends [message #171564] |
Mon, 14 March 2005 00:48  |
Eclipse User |
|
|
|
Hello everyone ,
I am sorry that i am posting second mail on same subject. But i didnt get
answer of it and i need it immediately , please help.
I want connection between two models to be done such way that ,
after selecting conn src and when it is released on target model ,
connection line should route itself into right angle bends to reach target.
( this i have done with manhattenrouter)
Also after this , when user moves any corner conn should again reform into
right angle bends , passing through corner that user has just moved.
( i am actually facing problem here. I searched API's of draw2d -
polylineConn , Manhatten , FanRouter , BendpointRouter etc. ,
but i need bendpoint with constraint that bends must be right angled. )
Or should i do manually by setting new x and y values to moved bendpoint.
-- mithun.
|
|
|
| Re: connections with right angle bends [message #171690 is a reply to message #171564] |
Mon, 14 March 2005 12:41   |
Eclipse User |
|
|
|
"mithun ruikar" <mithun.ruikar@gmail.com> wrote in message
news:d138j6$gdk$1@www.eclipse.org...
> Hello everyone ,
> I am sorry that i am posting second mail on same subject. But i didnt get
> answer of it and i need it immediately , please help.
>
> I want connection between two models to be done such way that ,
> after selecting conn src and when it is released on target model ,
> connection line should route itself into right angle bends to reach
target.
> ( this i have done with manhattenrouter)
>
> Also after this , when user moves any corner conn should again reform into
> right angle bends , passing through corner that user has just moved.
The functionality is not currently supported in GEF. I believe we already
have a feature request open on that. You can open another one if you can't
find it. Maybe you can implement this and contribute it to GEF.
>
> ( i am actually facing problem here. I searched API's of draw2d -
> polylineConn , Manhatten , FanRouter , BendpointRouter etc. ,
> but i need bendpoint with constraint that bends must be right angled. )
>
> Or should i do manually by setting new x and y values to moved bendpoint.
>
> -- mithun.
>
|
|
|
| Re: connections with right angle bends [message #172557 is a reply to message #171690] |
Fri, 18 March 2005 22:11   |
Eclipse User |
|
|
|
Hello ,
I have created rectilinear connection with bendpoint support.
I used bendPointEditPolicy and implemented , getCreate , getMove ,
getDelete bendPoint commands.
These methods returns Command , which executes to support my need , which
is connection with bendPoints , but only bends at right angle are allowed.
Now , my User can have any kind of well shaped connection with right angle
bends.
And I think this functionality should be made available to GEF asp , so
that everybody can make use of these standard looking connections.
Thank you.
-- mithun
Pratik Shah wrote:
> "mithun ruikar" <mithun.ruikar@gmail.com> wrote in message
> news:d138j6$gdk$1@www.eclipse.org...
>> Hello everyone ,
>> I am sorry that i am posting second mail on same subject. But i didnt get
>> answer of it and i need it immediately , please help.
>>
>> I want connection between two models to be done such way that ,
>> after selecting conn src and when it is released on target model ,
>> connection line should route itself into right angle bends to reach
> target.
>> ( this i have done with manhattenrouter)
>>
>> Also after this , when user moves any corner conn should again reform into
>> right angle bends , passing through corner that user has just moved.
> The functionality is not currently supported in GEF. I believe we already
> have a feature request open on that. You can open another one if you can't
> find it. Maybe you can implement this and contribute it to GEF.
>>
>> ( i am actually facing problem here. I searched API's of draw2d -
>> polylineConn , Manhatten , FanRouter , BendpointRouter etc. ,
>> but i need bendpoint with constraint that bends must be right angled. )
>>
>> Or should i do manually by setting new x and y values to moved bendpoint.
>>
>> -- mithun.
>>
|
|
|
| Re: connections with right angle bends [message #172574 is a reply to message #172557] |
Sat, 19 March 2005 09:46   |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Ahh wonderful. I was going to eventually get around to writing such a
bendpoint setup.
Would you mind sending a copy of those required classes? Trade you for
my 'Line" editPart set if your interested (though i need to tweak the
select-move a bit) :P
Thanks!
CL
mithun ruikar wrote:
> Hello ,
>
> I have created rectilinear connection with bendpoint support.
>
> I used bendPointEditPolicy and implemented , getCreate , getMove ,
> getDelete bendPoint commands.
> These methods returns Command , which executes to support my need ,
> which is connection with bendPoints , but only bends at right angle are
> allowed.
> Now , my User can have any kind of well shaped connection with right
> angle bends.
>
> And I think this functionality should be made available to GEF asp , so
> that everybody can make use of these standard looking connections.
>
> Thank you.
> -- mithun
>
>
> Pratik Shah wrote:
>
>
>> "mithun ruikar" <mithun.ruikar@gmail.com> wrote in message
>> news:d138j6$gdk$1@www.eclipse.org...
>>
>>> Hello everyone ,
>>> I am sorry that i am posting second mail on same subject. But i didnt
>>> get
>>> answer of it and i need it immediately , please help.
>>>
>>> I want connection between two models to be done such way that ,
>>> after selecting conn src and when it is released on target model ,
>>> connection line should route itself into right angle bends to reach
>>
>> target.
>>
>>> ( this i have done with manhattenrouter)
>>>
>>> Also after this , when user moves any corner conn should again reform
>>> into
>>> right angle bends , passing through corner that user has just moved.
>
>
>> The functionality is not currently supported in GEF. I believe we
>> already
>> have a feature request open on that. You can open another one if you
>> can't
>> find it. Maybe you can implement this and contribute it to GEF.
>
>
>>>
>>> ( i am actually facing problem here. I searched API's of draw2d -
>>> polylineConn , Manhatten , FanRouter , BendpointRouter etc. ,
>>> but i need bendpoint with constraint that bends must be right angled. )
>>>
>>> Or should i do manually by setting new x and y values to moved
>>> bendpoint.
>>>
>>> -- mithun.
>>>
>
>
|
|
| |
| Re: connections with right angle bends [message #172961 is a reply to message #172911] |
Tue, 22 March 2005 08:41   |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
I got them all. Im surprised though, I would have thought the only
thing required would be a new BendPointEditPolicy. but I guess that
policy is what is returning your move, create, and delete commands?
CL
mithun ruikar wrote:
> Hello Gilbert,
>
> I have made many new classes and also have had made change to some
> existing classes of my project , to have this functionality.
>
> I had started with shapes examples and updated it to support my need.
>
> You will need Connection (Model) , ConnectionEditPart ,
> BendPointEditPolicy
> , my custom commands to handle move, create , delete of bendPoint request.
>
> tell me which classes you have , so that i can know what exactly i
> should send you.
>
>
>
|
|
|
| Re: connections with right angle bends [message #173081 is a reply to message #172911] |
Tue, 22 March 2005 13:54   |
Eclipse User |
|
|
|
Mithun,
I'm glad to see that you've implemented this functionality and are willing
to contribute it to GEF. Would you be interested in providing a patch for
the logic example? You can either post it here or post it in a bug report.
"mithun ruikar" <mithun.ruikar@gmail.com> wrote in message
news:33cf91dbae0db6864c463c4620df426c$1@www.eclipse.org...
> Hello Gilbert,
>
> I have made many new classes and also have had made change to some
> existing classes of my project , to have this functionality.
>
> I had started with shapes examples and updated it to support my need.
>
> You will need Connection (Model) , ConnectionEditPart ,
> BendPointEditPolicy
> , my custom commands to handle move, create , delete of bendPoint request.
>
> tell me which classes you have , so that i can know what exactly i should
> send you.
>
>
>
|
|
| | | | | | | |
Goto Forum:
Current Time: Sun Nov 09 11:29:21 EST 2025
Powered by FUDForum. Page generated in 0.08582 seconds
|