Book a Demo

Author Topic: Simplified class diagram display?  (Read 4829 times)

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Simplified class diagram display?
« on: July 02, 2006, 04:07:24 pm »
Hi,

 I imported a suite of legacy code.

 Some of the classes have evolved over the last couple of years with more and more member variables and methods.

 This has resulted in very tall skinny class diagram in EA.

 I tried hiding the display of the methods and member variables, they do get hidden but the class is still tall and skinny with empty information.

 Is there a way to tell EA to redraw with the new display preference.

 I am trying to put together a overview of the current project and only want to show the classes and how they associate with each other.

 This will be the first time my colleague will be looking at an output from EA and I want to do it some justice.

Cheers

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Simplified class diagram display?
« Reply #1 on: July 02, 2006, 08:44:29 pm »
Select Class - use [Alt-Z] Resize.  You can select multiple classes and resize at the same time.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Simplified class diagram display?
« Reply #2 on: July 02, 2006, 09:20:03 pm »
Quote
Select Class - use [Alt-Z] Resize.  You can select multiple classes and resize at the same time.

HTH,
Paolo


My Class Model is currently at 19840 x 1169 pixel

The zoom is at 5% to fit everything in.

I selected all the classes and hit Alt-Z.

EA complains that my zoom has to be between 60% - 150% for it to work.

I have alot of struct/enum/internal classes. Is there a way not to import them for the diagram to be smaller so that EA can cope with it.

I am not sure if this is a EA limitation or an error in usage.

Cheers

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Simplified class diagram display?
« Reply #3 on: July 02, 2006, 09:27:53 pm »
Sorry, Nicholas, beyond my competency.

If pressed, I'd have to say both...

The EA limits appear arbitrary.  You'll have to ask the Sparxians why the limits are at these points.

I'd have to question your usage somewhat.  If you really have to show ALL these classes in the same diagram, you probably need to redraw them as they get smaller, so ignore the zoom setting at 5%, set the zoom to 60%, resize and then redraw (perhaps using a standard layout) and then reset zoom to full page.  This will, at least, get you to a starting point.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Simplified class diagram display?
« Reply #4 on: July 03, 2006, 04:09:23 pm »
Quote
I selected all the classes and hit Alt-Z.

EA complains that my zoom has to be between 60% - 150% for it to work.

You can get this to work by pressing zooming in to 60% before pressing Alt+Z.

Quote
I have alot of struct/enum/internal classes. Is there a way not to import them for the diagram to be smaller so that EA can cope with it.

Well, the general recommendation is to include only the classes on the diagram that help to explain what needs to be said.  As the EA import only has two options (add all classes to the package diagrams created or don't create any diagrams) this will usually come down to manually adding the classes of interest.

To help with adding the classes of interest you can start with a few classes and use the 'Insert Related Elements' option in the context menu as well as the relationships window.

nicholas_yue

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Simplified class diagram display?
« Reply #5 on: July 04, 2006, 08:38:10 pm »
Quote
To help with adding the classes of interest you can start with a few classes and use the 'Insert Related Elements' option in the context menu as well as the relationships window.


Ah. I get the handle of it now.

Thanks Simon.

Cheers

rpardee

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Simplified class diagram display?
« Reply #6 on: July 24, 2006, 01:17:38 pm »
Hey All,

I've got a ridiculously large class to depict on a class diagram, and I'd like to actually truncate the display of it if that's possible.  That is, have EA show just the first say, 15 members, and then maybe a little ellipsis character to signify that there's more there, without actually showing each member individually.  (The ellipsis is much less crucial--I'm just trying to paint a quick one-page overview picture here).

I've tried manually resizing the rectangle myself of course, by dragging the bottom resize handle, but as soon as I let go of the handle, the rectangle for the class springs back out to maximum length.

Is this possible?

Thanks!

-Roy

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Simplified class diagram display?
« Reply #7 on: July 24, 2006, 02:12:45 pm »
Roy,

I don't think there's anything like you describe in EA at present.

What you can do is right click the class on the diagram you're talking about and choose Feature Visibility from the context menu (or use the ctrl-shift-Y hot key with the class selected). You can then choose to exclude attribute and operations based on scope. Far from perfect I know, but it might save you some grief.

David
No, you can't have it!