Skip to main content



      Home
Home » Modeling » Graphiti » Bordere items
Bordere items [message #657860] Fri, 04 March 2011 06:40 Go to next message
Eclipse UserFriend
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 #657876 is a reply to message #657860] Fri, 04 March 2011 07:32 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Bordere items [message #658400 is a reply to message #657876] Tue, 08 March 2011 06:10 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Bordere items [message #658730 is a reply to message #658400] Wed, 09 March 2011 10:50 Go to previous message
Eclipse UserFriend
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
Previous Topic:need to change diagram and business model on save - how?
Next Topic:ToolBar DropDown Menu for Graphiti Based Editor
Goto Forum:
  


Current Time: Mon Jul 07 09:12:07 EDT 2025

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

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

Back to the top