Book a Demo

Author Topic: Element appearance - multiple diagrams  (Read 2108 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Element appearance - multiple diagrams
« on: May 25, 2006, 10:58:53 pm »
It seems as though an element's appearance is the same across all manifestations in diagrams.  Is that the case?

I ask, because given EA's unique user interface, I may just not be driving EA correctly.

Not withstanding that UI doesn't support different appearances for different Diagrams, does the underlying model support this?

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Element appearance - multiple diagrams
« Reply #1 on: May 25, 2006, 11:43:10 pm »
The underlying model has a record in t_object for each element, with a number of records in t_diagramobjects equal to the number of diagrams that element appears on. Both tables contain style information. F4 changes the t_object style; the Format Tool changes the t_diagramobjects style. The latter takes precedence.
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element appearance - multiple diagrams
« Reply #2 on: May 26, 2006, 12:04:00 am »
Quote
The underlying model has a record in t_object for each element, with a number of records in t_diagramobjects equal to the number of diagrams that element appears on. Both tables contain style information. F4 changes the t_object style; the Format Tool changes the t_diagramobjects style. The latter takes precedence.
Yes, but because of the arbitrary (and inconsistent) separation of Text appearance from the other appearance attributes, if I change the font (say of a Note) in one diagram it changes in ALL diagrams.  

However, if you set the Colour property in the Format Tool, it overrides the colour applied at the font level!

Consistency, Consistency, Consistency! TM

If you are going to fix it, think about making the styles a reference in the t_diagramobjects so that when rendering, it looks up the current definition of the style (like Word does).  This is much more useful than the limited form currently provided.

Paolo

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