Bordere items [message #657860] |
Fri, 04 March 2011 06:40  |
Eclipse User |
|
|
|
Hi,
Does Graphiti support creating of bordered items, like ports ?
If yes where can I found any example.
Thank you,
Ali
|
|
|
|
|
Re: Bordere items [message #658730 is a reply to message #658400] |
Wed, 09 March 2011 10:50  |
Eclipse User |
|
|
|
You would need to implement a MoveFeature for that port element, that only
allows moving along the border line of the parent. The Graphiti framework
does not offer that.
Michael
"Ali" wrote in message news:il52bj$6mb$1@news.eclipse.org...
Thank you Michael for your answer.
I created my port, and now I would like to keep it on the border when
the user try to move it. How can I add such constraint ? How to achieve
this ?
Thank you in advance,
Ali
Le 04/03/2011 13:32, Michael Wenz a écrit :
> Ports are graphical objects like everything else. You can define your
> own representation for it. There's an example on how to do that in the
> Graphiti tutorial. See the end of the method add in the class
> TutorialAddEClassFeature.
>
> Michael
>
>
> "Ali" wrote in message news:ikqill$3am$1@news.eclipse.org...
>
> Hi,
>
> Does Graphiti support creating of bordered items, like ports ?
> If yes where can I found any example.
>
> Thank you,
> Ali
|
|
|
Powered by
FUDForum. Page generated in 0.28141 seconds