Book a Demo

Author Topic: Custom apperances using stereotype  (Read 2679 times)

isaacc

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Custom apperances using stereotype
« on: May 11, 2007, 04:32:51 am »
I would like to have a classifier automatically change appearance when stereotyped. For example, if I have a class on a class diagram that I stereotype as "MyStereoType", I would like its background to change to green.

Is it possible to set this up in EA?

Thanks in advance.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Custom apperances using stereotype
« Reply #1 on: May 11, 2007, 10:43:59 am »
Look at shape scripts. Some 'standard' elements in EA already do this.
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Custom apperances using stereotype
« Reply #2 on: May 13, 2007, 01:54:42 pm »
Midnight is correct. Here's a shape script to get you started:

Code: [Select]
Shape Main {
 SetFillColor(0,255,0);
 DrawNativeShape();
}
The Sparx Team
[email protected]