Book a Demo

Author Topic: Consistent Diagram Item rendering proposal  (Read 12161 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Consistent Diagram Item rendering proposal
« on: May 03, 2010, 09:35:37 pm »
I've been playing with MDG Technologies over the last month or so and found a number of inconsistencies that REALLY get in the way of being able to create a useful technology that is able to provide the same kind of rendering that one can provide without using MDG Technologies.  I've developed a proposal to resolve these inconsistencies.  Because of the wide ranging nature of the proposal (and because different portions can be enacted without the whole being completed, I've split it into a number of separate topics, each dealing with a different aspect of the proposal.  This topic deals with the proposal as a whole, in summary.
If you want to support the proposal in its entirety for this, submit a Feature Request with the same name (Consistent Diagram Item rendering proposal),
leaving a note here to say you've done it
- so we users have an indication of the level of support.[/color]
The proposal has a number of principles to which it attempts to adhere:
  • Whatever rendering you can perform manually, you should also be able to do on a per-stereotype basis.
  • Shape scripts should override and supersede the Stereotype "Default".
  • MDG Technologies should not be less functional than the alternatives
  • The order of rendering application should be: Instance Default, Stereotype (whether Global, Profile or MDG) Default, Item Default Appearance, Item Diagram Appearance
This latter principle, (in build 855) is currently violated - see: Consistent application of "Default" item

The user manually can affect the rendering of an item's:
  • Fill colour
  • Border Colour
  • Border Width
  • Font (including some font attributes - such as name, size, bold, italic, underline etc)
  • Font Colour
This can be done via the Format Tool (View|Toolbars>Format Tool.

In addition, the user can request an alternate image be displayed.  In this case, EA will add the item name and the item stereotype under the image.  As one would expect, having set an alternate image, you can no longer affect the fill or border colour (since they - conceptually - don't exist any more.  However, the font does exist, and so you'd expect to be able to set the various font attributes in the same way as without the alternate image.  That (currently - build 855) is not the case and is the subject of a separate bug report: Alternate Image - Font Colour not supported.  I commend your support for the fixing of this defect.

OK, so we've now defined the scope of what I'm going to discuss.

As you can see, the first thing this proposal needs to address is: the inconsistency between font specification in rectangular and alternate image modes.

The next is to acknowledge that since one can change the 5 aspects of the item manually, we should be able to set a Default Appearance for the same 5 aspects (See Allow all 5 aspects to be set via Default Appearance [F4])

Now we have repaired the item Default Appearance for unstereotyped items, we need to be able to do the same thing for stereotyped items.  We need a consistent mechanism for correctly applying rendering to Global Stereotypes (those defined in the Settings|Uml...|Stereotypes dialog).  (See: Consistent appearance override for stereotypes)

Finally, having created a consistent mechanism for Global Stereotypes, we need to create a mechanism to consistently define and apply the equivalent renderings via MDG or Profile related stereotypes.  At present (build 855) - setting the Appearance>Default Appearance... [F4] of the Stereotype in the Profile Diagram will cause the element dragged off the toolbar to have its default setting set to the defined value - See: Re: Alternate image in MDG (section on Default Appearance).  The purpose of this is unclear to me since I thought that the purpose of the appearance setting of the stereotype was to NOT set the Default Appearance, but to set it programmatically via the stereotype appearance functionality.

{End of Part 1}
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: Consistent Diagram Item rendering proposal
« Reply #1 on: May 03, 2010, 09:39:34 pm »
{Part 2}

In Template Package Item Rendering outcome I discuss how to get around the non-sensical mechanism to set the appearance of the the new unstereotyped element dragged from the Toolbox when a Template package has been defined.  In that posting I propose the concept of a resultant rendering on a particular diagram created by a combination of the rendering influences on the item in the diagram as the basis (in that case) for the Appearance>Default Appearance... [F4] of the newly created item.

I believe the same concept should be used to set the Standard Appearance of the stereotype defined in the MDG.  There should be NO implication for the direct appearance of the item created from the profile or technology.

I believe if all the aspects of this proposal were implemented, EA would provide a very flexible but consistent set of mechanisms for managing the rendering of items on diagrams.

As a by product it will REDUCE Sparx's maintenance load - since it is currently TOO high as evidenced by the fact that these problems exist.  As I mentioned above, Sparx can implement various parts of the proposal (almost asynchronously) .  We, as users can provide Sparx with feedback as to which sections of the proposal are real "hot-spots" since they affect other parts of the user interaction and thus will remedy other inconsistencies.

I urge your indication of support for all, or particular aspects, of the proposal.
« Last Edit: May 03, 2010, 09:44:00 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Consistent Diagram Item rendering proposal
« Reply #2 on: May 03, 2010, 11:37:12 pm »
Voted!

Geert

salayande

  • EA User
  • **
  • Posts: 224
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #3 on: May 04, 2010, 05:12:48 am »
I vote in support of this submission and I have raised a user support request.

Segun

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #4 on: May 05, 2010, 06:49:51 am »
I definitely vote for this!

Thanks for taking the time Paolo. This is well thought out and presented. [No surprise there of course.]

I have submitted a feature request with the same name, citing both pages of the above posting. At this point I have the automated receipt message. I do not yet have a request number or a response.

David
No, you can't have it!

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #5 on: May 05, 2010, 05:01:37 pm »
I vote in support of this submission and I have raised a user support request.
Using V12

beginner

  • Guest
Re: Consistent Diagram Item rendering proposal
« Reply #6 on: May 05, 2010, 06:16:24 pm »
Quote
... I do not yet have a request number or a response...
No, you can't have it!
« Last Edit: May 05, 2010, 06:17:02 pm by beginner »

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #7 on: May 07, 2010, 10:15:18 am »
Gets my vote!
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #8 on: May 07, 2010, 01:59:01 pm »
voted and registered bug submitted
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

ErikVariable

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #9 on: May 18, 2010, 05:45:52 pm »
Done in HP capacity

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Consistent Diagram Item rendering proposal
« Reply #10 on: May 19, 2010, 03:45:46 am »
Sounds like a plan...