Book a Demo

Author Topic: Shape script: overriding problem  (Read 3028 times)

gcherpil

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Shape script: overriding problem
« on: June 27, 2008, 07:26:47 am »
Hello EA fans,

I'm trying to override connectors labels in the shape script editor to intervert role and multiplicity (e.g. to put the target role beneath the connector line, it's easier to read). Therefore I've created a new stereotype from "association" and overrided it with a script.

my script looks like that so far:

shape righttoplabel
{
      print("#target:multiplicity#");
}
shape rightbottomlabel
{
      print("#target:name#");
}
And it works.
However, the label have their former size, the multiplicity label is too wide, and the role label is too thin, which causes the role name to be displayed on 2 lines and be misplaced (sometimes over a connected class).

I've tried every single possibility I could think of to resize the labels, and unfortunately I couldn't find anything helpful neither in the forums nor in the user guide.

Could someone help me?

Thanks in advance

G.