Book a Demo

Author Topic: Display package in rectangular notation.  (Read 5556 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Display package in rectangular notation.
« on: September 24, 2015, 09:28:11 am »
In a diagram is it possible to display a package in rectangular notation? (i.e. similar to say a class)
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Display package in rectangular notation.
« Reply #1 on: September 24, 2015, 10:12:58 am »
Quote
In a diagram is it possible to display a package in rectangular notation? (i.e. similar to say a class)
Technically, you can, I do it via automation.

But it doesn't do you any good since the Rectangular form of the package looks the same.  :(

You might be able to assign a stereotype and do it that way...


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: Display package in rectangular notation.
« Reply #2 on: September 24, 2015, 02:16:17 pm »
Quote
Technically, you can, I do it via automation.
You may as well be setting it to elephant notation. Packages don't have a rectangle notation.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Display package in rectangular notation.
« Reply #3 on: September 24, 2015, 05:38:07 pm »
[size=14]Like Simon earlier on one of my other posts, I thought I was quoting it and instead I was modifying it!

So I've now lost the original text...
[/size]


Paolo
« Last Edit: September 25, 2015, 04:37:56 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Display package in rectangular notation.
« Reply #4 on: September 24, 2015, 08:03:34 pm »
I alway wondered why Sparx does not concentrate more on the drawing aspect. UML is a graphical language. And thus, one should assume, there should be some more focus on drawing.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Display package in rectangular notation.
« Reply #5 on: September 25, 2015, 04:28:58 pm »
Quote
I always wondered why Sparx does not concentrate more on the drawing aspect. UML is a graphical language. And thus, one should assume, there should be some more focus on drawing.

q.
"We hold this truth to be self-evident"...

As you know, I've been saying the same thing for over 10 years...

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

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Display package in rectangular notation.
« Reply #6 on: September 25, 2015, 04:35:46 pm »
Quote
[size=14][SNIP][/size]
I presume you mean packages don't have a specified rectangular representation in UML.
[size=14][SNIP][/size]
If you want a rectangular package shape, use Info View in v12.1!

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

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Display package in rectangular notation.
« Reply #7 on: September 25, 2015, 05:50:51 pm »
You can use UML stereotypes and shapescript
i.e.
Menu Project>Settings>UML Types
Create new stereotype for package like "Rectangle"
Add shape script like below
Then for a package select stereotype "Rectangle" and shapescript kicks in and draws a rectangle for the package.
Code: [Select]
shape main
{
     rectangle(0,0,100,100);
     addsubshape("namecompartment",100,100);
     shape namecompartment
     {
          h_align = "center";
          editablefield = "name";
          println("#name#");
     }
}
Hope that helps.
BTW I've just sent Martin R. at MinEdu an EA MDG which has some of these
 :)
« Last Edit: September 25, 2015, 05:55:29 pm by phenzell »
Happy to help
:)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Display package in rectangular notation.
« Reply #8 on: September 28, 2015, 05:47:01 am »
thanks and thanks
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.