Book a Demo

Author Topic: Wrap long function display in class diagram  (Read 4902 times)

Hardy

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Wrap long function display in class diagram
« on: October 02, 2014, 02:20:40 am »
I use EA11, I have a class diagram. In one of the class I have method with lots of parameters, so the display of the diagram is very wide.

Is there a way I can wrap the parameters of method to ensure the diagram is not too wide?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Wrap long function display in class diagram
« Reply #1 on: October 02, 2014, 02:51:35 am »
You could turn off Diagram/Features/Show Parameter/None. Wrapping is (AFAIK) not possible.

q.

Hardy

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Wrap long function display in class diagram
« Reply #2 on: October 02, 2014, 03:06:18 am »
Yeah, I need to show the parameters to tell the differences among some overloaded functions.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Wrap long function display in class diagram
« Reply #3 on: October 02, 2014, 04:39:46 am »
Bad luck. I thought that Link Note to Element Feature would help. But the note then just shows the operation name. What a useless feature :o

q.

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Wrap long function display in class diagram
« Reply #4 on: October 03, 2014, 12:19:34 pm »
Right-click on the class.
Open the "Features and Properties" and then "Feature and Compartment Visibility" dialog (or press Ctrl+Shft+Y to open this dialog)
In the "When resizing elements" group
Select "Wrap Features"

 :D
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Wrap long function display in class diagram
« Reply #5 on: October 03, 2014, 07:30:32 pm »
Hehe. One never stops learning. I certainly saw that before but never used it. Thanks for the pointer.  :)

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Wrap long function display in class diagram
« Reply #6 on: October 07, 2014, 03:38:17 pm »
 ;)

I wonder if Hardy has seen this answer though...
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Wrap long function display in class diagram
« Reply #7 on: October 07, 2014, 08:13:30 pm »
Well, at least some threads (like this) might get dug out in the future to help others. And you made me a bit wiser ;)

q.