Hello,
I need to display a stereotyped element as a rectangle with the Element Type followed by the name in bold.
Here is the shapescript:
shape main{
DefSize(100,100);
Rectangle(0,0,100,100);
AddSubShape("typecompartment",90,15,3,0);
AddSubShape("namecompartment",90,20,3,0);
return;
shape typecompartment
{
h_align = "center";
v_align = "top";
Print("This is a sample text");
}
shape namecompartment
{
h_align = "center";
v_align = "top";
bold = true;
PrintLn("#NAME#");
}
}
If the width is reduced, the "This is a sample text" text is printed on 2 lines, overlapping with the element's name.
Is there a way to truncate the 1st line if the element's width is small e.g. "This is a ..." similarly to the way EA handles stereotype names?