Book a Demo

Author Topic: How to Shrink an object in class diagram  (Read 4735 times)

Jeb.Beasley

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to Shrink an object in class diagram
« on: February 18, 2005, 11:43:13 am »
Is there a way to reduce the size of an object (class) in the class diagram.  If any identifier names are very wide, I can't reduce the width to a manageable size.

Likewise if a class has a large number of methods, the hieght may get to big to easily layout the diagram.

Thanks

Jeb

Tryst

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to Shrink an object in class diagram
« Reply #1 on: February 22, 2005, 07:48:54 am »
Right-click on a Class in the diagram and select the following, Element Features->Specify Feature Visibility.

From this dialog box you can select the visiblity of you attributes and methods.

Tryst
Tryst

Jeb.Beasley

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to Shrink an object in class diagram
« Reply #2 on: February 22, 2005, 09:08:24 am »
Thanks, that certainly helps, but some of my public methods have long signatures that make the element too wide.

Either truncation or word wrap would be nice so I could make the object narrower.

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: How to Shrink an object in class diagram
« Reply #3 on: February 22, 2005, 06:18:52 pm »
I think if you set trancated name to 'Alias' and switch the diagram option,
you can use trancated name in diagram and original name in source code generation, etc.

It's an option, but you must enter alias for each
method/attribute...

Hope this helps.
--
t-kouno
--
t-kouno

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to Shrink an object in class diagram
« Reply #4 on: February 22, 2005, 09:01:27 pm »
The alias only helps if the name itself is really long.  For really long signatures you could try setting the "Show parameter detail" in the diagram properties to none.

Simon

Jeb.Beasley

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to Shrink an object in class diagram
« Reply #5 on: February 23, 2005, 03:38:58 am »
That definitely helps simon, I also discovered that and found if I set it to show parameter names and provide short names that it helps.

I would still suggest an enhancement to allow resizing and preferably word wrapping when shrinking objects.

Other than that, this thing product is fantastic.