Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Bordere items
Bordere items [message #657860] Fri, 04 March 2011 11:40 Go to next message
Ali is currently offline AliFriend
Messages: 18
Registered: July 2009
Junior Member
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 12:32 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 11:10 Go to previous messageGo to next message
Ali is currently offline AliFriend
Messages: 18
Registered: July 2009
Junior Member
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 15:50 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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: Fri Apr 26 07:44:57 GMT 2024

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

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

Back to the top