Book a Demo

Author Topic: Text Label when applying image on element figure  (Read 5939 times)

brback

  • EA User
  • **
  • Posts: 21
  • Karma: +1/-0
    • View Profile
Text Label when applying image on element figure
« on: October 15, 2016, 12:29:55 am »
When applying an image on an element figure, there is also added a text label stating the stereotype for the element type which you can move and/or hide, as well as a Qualified Name for the element which is locked under the figure and I am unable to change in any way.

What I really need is my image applied on the element, with a label stating the name (not qualified) of the element which I am able to move around. Is there a way to do this?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Text Label when applying image on element figure
« Reply #1 on: October 15, 2016, 02:19:39 am »
I guess that is not possible. You might ask for a new feature, but you should not hold your breath.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Text Label when applying image on element figure
« Reply #2 on: October 15, 2016, 02:33:19 am »
Looks like something you might be able to achieve with a shapescript.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Text Label when applying image on element figure
« Reply #3 on: October 15, 2016, 03:23:31 am »
That will not allow you to drag the name to some place. Also you need to write that for any stereotype you apply and of course it will only work for those stereotyped elements. However, you can likely create something that puts the name to another place than the default.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Text Label when applying image on element figure
« Reply #4 on: October 15, 2016, 05:18:43 am »
There's a way with the shapescripts to make a name label that can be dragged to another place.
I use that in some of these shapescripts: https://github.com/GeertBellekens/Enterprise-Architect-Shapescript-Library/tree/master/BAM
I believe the trick is to define a label after the definition of the main shape.

Code: [Select]
//definition of a label
shape label
{
 setOrigin("S",0,0);
 println("#NAME#");
}

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Text Label when applying image on element figure
« Reply #5 on: October 15, 2016, 06:15:25 am »
One never stops learning.

EAUI-like the resizing behaves different to text-wrapping in the "normal" element: it only looks for spaces to wrap, not for hyphens (and possibly other chars).

q.

brback

  • EA User
  • **
  • Posts: 21
  • Karma: +1/-0
    • View Profile
Re: Text Label when applying image on element figure
« Reply #6 on: October 17, 2016, 07:47:41 pm »
Thank you Geert. I wasn't aware of the shapescript feature, but it seems to be able to help me a long way :)