Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: acme82 on June 27, 2009, 02:02:50 am

Title: Disable line between class name and class body
Post by: acme82 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
Title: Re: Disable line between class name and class body
Post by: «Midnight» 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.
Title: Re: Disable line between class name and class body
Post by: philchudley 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
Title: Re: Disable line between class name and class body
Post by: RoyC 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.
Title: Re: Disable line between class name and class body
Post by: «Midnight» on June 29, 2009, 10:31:40 pm
Roy's approach is by no means perfect, but an interesting workaround nonetheless.
Title: Re: Disable line between class name and class body
Post by: Edward Stow 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