Book a Demo

Author Topic: Hide attributes/operation  (Read 5137 times)

pingo28

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Hide attributes/operation
« on: June 23, 2005, 01:02:28 pm »
I just downloaded the trial version of EA and as a unhappy Rational Rose user I'm quite impressed by this software.

If I hide the attributes and operations of a class I see an empty class  on the diagram with the same size as if these things are shown. If you do this in rose, the class is shrinked to it's minimal size just showing the class name.  Is this also possible with EA? We often use this to visualize the relationships between a bunch of classes where the names of attributes and operations is not important. If the class symbols keep the same size as with operations/attributes visible there is no reason to hide them ?!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Hide attributes/operation
« Reply #1 on: June 23, 2005, 03:32:40 pm »
The classes don't automatically resize, but if you select multiple classes then you can press Alt+Z and they will resize for you.

Simon

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Hide attributes/operation
« Reply #2 on: June 23, 2005, 09:16:14 pm »
Also, there are 3 other commands of interest in the Tools->Customize->Commands->Element list: Width, Height, Both.  

These commands make a selection of elements have the same width and height of the element with the selection mask.

Ash
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Hide attributes/operation
« Reply #3 on: June 23, 2005, 10:58:23 pm »
Quote
Also, there are 3 other commands of interest in the Tools->Customize->Commands->Element list: Width, Height, Both.  

These commands make a selection of elements have the same width and height of the element with the selection mask.

Ash
Ash,

These look very useful, but what is a selection mask?  I couldn't find a reference in the Help. ???

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

thomaskilian

  • Guest
Re: Hide attributes/operation
« Reply #4 on: June 24, 2005, 01:31:27 am »
I guess it is the last element selected. I use these and others regularly. The last selected element is always used as reference (hence selection mask).

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Hide attributes/operation
« Reply #5 on: June 24, 2005, 01:39:36 am »
Quote
I guess it is the last element selected. I use these and others regularly. The last selected element is always used as reference (hence selection mask).
Thomas,

I did a Ctrl-A (Select All) on a Diagram then Element|Make Same...|Both

I guess the one it picked was "pot luck"?  ???  Do you have any further insight into which one might be picked in this situation?

For this diagram, it seemed to do what I wanted...

Cheerz,
Paolo




« Last Edit: June 24, 2005, 01:39:47 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: Hide attributes/operation
« Reply #6 on: June 24, 2005, 01:51:08 am »
Just unselect and reselect the "leading" element after the CTRL-A and then do the alignment/resize operation. Took me some time to get used to it but it's much better than powerpoint where these operations are always based on an arbitrary element :P

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Hide attributes/operation
« Reply #7 on: June 26, 2005, 03:23:05 pm »
I made an intuitive guess about what would happen in your situation Paolo.  EA would select all the elements based on z-order.  So, your last added element becomes the last selected.  (This actually corresponds to the front element)

Simon

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Hide attributes/operation
« Reply #8 on: June 26, 2005, 06:42:56 pm »
Quote
I made an intuitive guess about what would happen in your situation Paolo.  EA would select all the elements based on z-order.  So, your last added element becomes the last selected.  (This actually corresponds to the front element)

Simon
Hi Simon,

Just to clarify,

1)  You made an intuitive guess - which you confirmed by a review of the code.

2)  If I want to use a specific shape for this process, I make it the front element, by using the z-oder operations and then select all.  The front element will then be used as the mask.

Thanx,
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: Hide attributes/operation
« Reply #9 on: June 26, 2005, 09:59:47 pm »
Quote
1)  You made an intuitive guess - which you confirmed by a review of the code.

Not quite.

I made an intuitive guess then opened up a diagram and tested it to confirm my hypothesis.  (I guess my statements are therefore from the perspective of a user)

I wouldn't make the recommendation you specify in point 2.  (As z-order is primarily used for other purposes)  Instead I would select the relevant elements and right click on the element I wanted as the mask then select the operation I want from the context menu.

Simon

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Hide attributes/operation
« Reply #10 on: June 26, 2005, 11:49:42 pm »
Quote
Not quite.

I made an intuitive guess then opened up a diagram and tested it to confirm my hypothesis.  (I guess my statements are therefore from the perspective of a user)

I wouldn't make the recommendation you specify in point 2.  (As z-order is primarily used for other purposes)  Instead I would select the relevant elements and right click on the element I wanted as the mask then select the operation I want from the context menu.

Simon
Thanks Simon for the clarification.

I tried the z-order method and it didn't seem to work. :(

So, the process is as you suggest, whichever shape I right click on becomes the selection mask.  This seem s to work. 8)

However, what happens if I come via the Element menu?

The reason why we ask about the code is that you have access to it, we don't...  Can you confirm what happens in the latter case?

Paolo


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