Book a Demo

Author Topic: element icon size matters  (Read 3910 times)

vroomado

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
element icon size matters
« on: April 12, 2018, 11:54:49 pm »
Good morning All,

EA comes with a number of predefined stereotypes that alter an element appearance, for example <<server>>, which adds a small icon to the node element.  this icon remains in the same position and stays the same size regardless of how I adjust the size of the element. I would like to use our own image instead of the small icon and get the same behaviour.  however when I do this via metafile as the original stereotype, the image fills the element shape and adjusts as I change the element shape size.

we have cases where a stereotyped element needs to vary in size but the associated icon shouldn't.

Recommendations?

thanks in advance!

vroomado

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: element icon size matters
« Reply #1 on: April 13, 2018, 06:03:11 am »
IIRC when using a bitmap image it will preserve the size.

q

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: element icon size matters
« Reply #2 on: April 13, 2018, 09:49:29 am »
Those "icons" are often written via the shapescript as "decorations".  Check the Help.  Decorations retain their standard size regardless of the size of the element.

We do it all the time.

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

vroomado

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: element icon size matters
« Reply #3 on: April 27, 2018, 03:32:39 am »
That's it!

Thanks Paolo! Thanks qwerty!