Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Port element short name
Port element short name [message #1063419] Thu, 13 June 2013 07:00 Go to next message
abdallah Q is currently offline abdallah QFriend
Messages: 14
Registered: May 2013
Junior Member
Hi all,

i'm trying to find any way to display my port's short name next to it in my diagram

index.php/fa/15244/0/

is there any suggestion Sad?
Re: Port element short name [message #1064082 is a reply to message #1063419] Mon, 17 June 2013 14:06 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Abdallah,

you can add a Text graphics algorithm to display that text. But it needs to be placed either inside the Device1 shape or within an invisible rectangle surrounding the shape (otherwise the part sticking out of the shape would be clipped). The tutorial implmentation plugin shows how to use such an invisible rectangle around a shape to display the port.

Michael
Re: Port element short name [message #1064203 is a reply to message #1064082] Tue, 18 June 2013 09:01 Go to previous messageGo to next message
abdallah Q is currently offline abdallah QFriend
Messages: 14
Registered: May 2013
Junior Member
Michael,

thank you for your help Smile, the ports working very well as the tutorial but i could't find out how can i get list of child elements (ports) and use their text name at the Text graphics algorithm, do you know which function can help me in such case?


Abdallah
Re: Port element short name [message #1064426 is a reply to message #1064203] Wed, 19 June 2013 08:31 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Abdallah,

I'm not sure if you talk about the graphical representation or your domain
model? In case of the graphical layer, there is a method getAnchors() on
Shape that returns the list of anchors defined for the shape.

I case you talk about your domain model I can't tell...

Michael
Previous Topic:DiagramEditor and Compatibility wtth Eclipse 4.2.x
Next Topic:connection decorator rotation on move
Goto Forum:
  


Current Time: Sun Dec 21 02:38:47 GMT 2014

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

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