Book a Demo

Author Topic: class diagram box resize  (Read 4840 times)

itzdavide

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
class diagram box resize
« on: July 30, 2010, 10:45:41 pm »
Is there a way to resize the class diagram boxes and have the operations wrap to the next line when it cannot fit within the box?  

I have a constructor with a long parameter list and the EA extends the box to fit the constructor.  This creates a lot of dead space and creates a wide box that requires you to zoom out to see everything.  By zooming out, the fonts scales down and the other classes in the diagram becomes unreadable.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: class diagram box resize
« Reply #1 on: August 02, 2010, 08:49:08 am »
Element | Feature Visibility.  There's an option there to wrap features.

itzdavide

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: class diagram box resize
« Reply #2 on: August 02, 2010, 09:16:21 pm »
Thanks!  Exactly what I was looking for.

Is there a way to set this globally for all elements?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: class diagram box resize
« Reply #3 on: August 02, 2010, 09:57:51 pm »
I don't really see the option in Tools/Options, but what you could try is to setup an element like that in the "template package".
That might results in all new (diagram?)elements having that option.

Geert

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: class diagram box resize
« Reply #4 on: July 28, 2011, 03:12:53 pm »
Bump.

I'm trying to use this feature to stop long flat classes from being created, when an attribute is quite long - eg. where the attribute name is long, and there is an enumeration and a default value...

Unfortunately, for some classes...

while I'm able to select Feature Visibility, Wrap Features, the class is bumping back out to the size of the longest attribute...

Other classes, this seems to work as intended...

Is this worthy of a bug report or am I doing this wrong?

9.09.906

Andy
« Last Edit: July 28, 2011, 03:15:26 pm by novaphile »
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: class diagram box resize
« Reply #5 on: August 03, 2011, 09:42:12 am »
Sounds like a feature request that I would support
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: class diagram box resize
« Reply #6 on: August 03, 2011, 09:53:14 am »
The feature is working...

...just not all the time.

I haven't been able to work out what causes it to fail occasionally...

My current best guess is that it was a conflict between two of us trying to modify the same class.

If I can work out what causes it to happen, I'll put in a bug report.
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."