Home » Modeling » UML2 » How to associate an image to a stereotype?
|
Re: How to associate an image to a stereotype? [message #476703 is a reply to message #476699] |
Wed, 05 December 2007 14:40 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Stefan
uml::Stereotype has a method createImage() that returns a uml::Image. You
can then specify the format (BMP, EMF, GIF, JPG, PNG, SVG, WMF), and the
content. Stereotypes can have more than one image and the interpretation of
what these images are and how they should be displayed is a "variation"
point in the spec. Also, the combination of how images should be
displayed when multiple stereotypes with images are added to one element is
a variation point ( no order is described in the spec ).
Cheers
- James.
"SKuhn" <kuhn@oio.de> wrote in message
news:fj461r$9oc$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi folks,
>
> I wondered how I can associate an image to a stereotype? In OMGs UML2 it
> should be possible.
>
> - -stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHVZrqIYVWjMSpDwwRAi8fAJ0U3+MpvUCQYvS0dkNmHPcetOSJugCg 7bbG
> e+CH5Y9FMF5PG4/cPK+NHUs=
> =OB4j
> -----END PGP SIGNATURE-----
|
|
|
Re: How to associate an image to a stereotype? [message #476712 is a reply to message #476703] |
Thu, 06 December 2007 19:19 |
Stefan Kuhn Messages: 355 Registered: July 2009 |
Senior Member |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi james,
I found a createIcon method in stereotype. I guess this is what you
mean. The drawback is that there must exist a generated version of that
stereotype (or eobject). Afaik, uml2 uses dynamic-emf for profiles to
create the stereotypes, so shouldn't there already be a way to specify
this in the profile uml2 model or in the annotated emf-model inside this?
- -stefan
James Bruck wrote:
> Hi Stefan
>
> uml::Stereotype has a method createImage() that returns a uml::Image. You
> can then specify the format (BMP, EMF, GIF, JPG, PNG, SVG, WMF), and the
> content. Stereotypes can have more than one image and the interpretation of
> what these images are and how they should be displayed is a "variation"
> point in the spec. Also, the combination of how images should be
> displayed when multiple stereotypes with images are added to one element is
> a variation point ( no order is described in the spec ).
>
> Cheers
> - James.
>
>
> "SKuhn" <kuhn@oio.de> wrote in message
> news:fj461r$9oc$1@build.eclipse.org...
> hi folks,
>
> I wondered how I can associate an image to a stereotype? In OMGs UML2 it
> should be possible.
>
> -stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHWEsuIYVWjMSpDwwRAuGUAKDuhF7FjvvD5ZIz7KZXHaaxeUOl3QCf Ye6W
pXIHs1htURFCq5JgXMC0cKc=
=MNys
-----END PGP SIGNATURE-----
|
|
| | |
Re: How to associate an image to a stereotype? [message #625675 is a reply to message #476699] |
Wed, 05 December 2007 14:40 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Stefan
uml::Stereotype has a method createImage() that returns a uml::Image. You
can then specify the format (BMP, EMF, GIF, JPG, PNG, SVG, WMF), and the
content. Stereotypes can have more than one image and the interpretation of
what these images are and how they should be displayed is a "variation"
point in the spec. Also, the combination of how images should be
displayed when multiple stereotypes with images are added to one element is
a variation point ( no order is described in the spec ).
Cheers
- James.
"SKuhn" <kuhn@oio.de> wrote in message
news:fj461r$9oc$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi folks,
>
> I wondered how I can associate an image to a stereotype? In OMGs UML2 it
> should be possible.
>
> - -stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHVZrqIYVWjMSpDwwRAi8fAJ0U3+MpvUCQYvS0dkNmHPcetOSJugCg 7bbG
> e+CH5Y9FMF5PG4/cPK+NHUs=
> =OB4j
> -----END PGP SIGNATURE-----
|
|
|
Re: How to associate an image to a stereotype? [message #625684 is a reply to message #476703] |
Thu, 06 December 2007 19:19 |
Stefan Kuhn Messages: 355 Registered: July 2009 |
Senior Member |
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi james,
I found a createIcon method in stereotype. I guess this is what you
mean. The drawback is that there must exist a generated version of that
stereotype (or eobject). Afaik, uml2 uses dynamic-emf for profiles to
create the stereotypes, so shouldn't there already be a way to specify
this in the profile uml2 model or in the annotated emf-model inside this?
- -stefan
James Bruck wrote:
> Hi Stefan
>
> uml::Stereotype has a method createImage() that returns a uml::Image. You
> can then specify the format (BMP, EMF, GIF, JPG, PNG, SVG, WMF), and the
> content. Stereotypes can have more than one image and the interpretation of
> what these images are and how they should be displayed is a "variation"
> point in the spec. Also, the combination of how images should be
> displayed when multiple stereotypes with images are added to one element is
> a variation point ( no order is described in the spec ).
>
> Cheers
> - James.
>
>
> "SKuhn" <kuhn@oio.de> wrote in message
> news:fj461r$9oc$1@build.eclipse.org...
> hi folks,
>
> I wondered how I can associate an image to a stereotype? In OMGs UML2 it
> should be possible.
>
> -stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHWEsuIYVWjMSpDwwRAuGUAKDuhF7FjvvD5ZIz7KZXHaaxeUOl3QCf Ye6W
pXIHs1htURFCq5JgXMC0cKc=
=MNys
-----END PGP SIGNATURE-----
|
|
| | |
Goto Forum:
Current Time: Fri Mar 29 08:18:24 GMT 2024
Powered by FUDForum. Page generated in 0.03269 seconds
|