Author Topic: Disable line between class name and class body  (Read 3533 times)

acme82

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Disable line between class name and class body
« on: June 27, 2009, 02:02:50 am »
Hi,

I would like to draw a high-level conceptual class diagram in Enterprise Architect. Therefore, I do just need class names and basic associations between these classes. Attributes and operations inside the classes are not needed. As I do have a great amount of classes to display, I would like to reduce the size of the classes by omitting the line between the class name and the attributes/operations. in StarUML there is for example an option saying "Suppress attributes/operations" which results in class elements consisting solely of the class name. Using the "Feature Visibility" option in EA leads to a classes consisting of the class name, a separator and an empty area. Is there any possibility to just show the class name without the additioanl line and the free space below that line as this would result in smaller diagrams?

Thanks in advance,
Markus
« Last Edit: June 27, 2009, 05:04:19 am by acme82 »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Disable line between class name and class body
« Reply #1 on: June 28, 2009, 10:08:32 pm »
Sorry to be the bearer of bad news Markus.

The answer is just plain no.

This is an old gripe that seems to get no traction whatsoever from the Sparx end.
No, you can't have it!

philchudley

  • EA User
  • **
  • Posts: 741
  • Karma: +20/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Disable line between class name and class body
« Reply #2 on: June 28, 2009, 10:37:01 pm »
One possiblity, (not ideal), is to create a stereotype for the class and attatch a simple shapescript consisting of the class name centred in a rectangle.

Create a class as usual, set the stereotype and you should see you new shape.

You can hide the stereotype by using the diagram properties
Models are great!
Correct models are even greater!

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Disable line between class name and class body
« Reply #3 on: June 29, 2009, 09:11:35 am »
I'm not sure what the problem is here. I would think that to acheive the result that Markus wants he would have to do a little bit of fiddling around, so I see a few options. (I'm starting on the assumption that Markus has not created any Classes yet.)

Drag a Class on a diagram, set the diagram properties to not show any compartments in elements (or, if it's just Classes, perhaps set that in the Feature Visibility for the element). Now drag the bottom of the element up so that the shape is a small rectangle with just the Class name in it - no compartment line.  

You can use this element as the marker for the 'Make same height' multiple-elemet context menu option, or save the diagram as a Template in an element templete package, or as a Pattern, or apply the element to a stereotype and perhaps add it to a profile. Or you could add your normal Classes to the diagram and drag up the bottom of each one (which is what you would probably have to do if you have existing Classes).

Would any of that work for you? Templates would affect all the diagrams you create, whereas you can use the other options in parallel with normal Class element descriptions.
« Last Edit: June 29, 2009, 09:42:28 am by RoyC »
Best Regards, Roy

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Disable line between class name and class body
« Reply #4 on: June 29, 2009, 10:31:40 pm »
Roy's approach is by no means perfect, but an interesting workaround nonetheless.
No, you can't have it!

Edward Stow

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Disable line between class name and class body
« Reply #5 on: July 17, 2009, 10:54:51 am »
Sorry to jump into the thread a bit late but this issue
was also discussed by me earlier this year.

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1237938988/0#0

Hiding the Attribute compartment would be a really useful feature.
--
Edward Stow