Skip to main content



      Home
Home » Modeling » Graphiti » Port element short name
Port element short name [message #1063419] Thu, 13 June 2013 03:00 Go to next message
Eclipse UserFriend
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 10:06 Go to previous messageGo to next message
Eclipse UserFriend
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 05:01 Go to previous messageGo to next message
Eclipse UserFriend
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 04:31 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 23:27:26 EDT 2025

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

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

Back to the top