Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » WrapLabel- automatic font size possible?
WrapLabel- automatic font size possible? [message #160126] Wed, 14 November 2007 04:42 Go to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all,

is it possible to let the WrapLabel automatically decide its font size
based on the space of the outer figure?

e.g. I have a button figure, enter its name- resize the button figure
but its name-size is fixed.

- -stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOnzEIYVWjMSpDwwRAvGHAJ9qQTRhJOmfFpBA0LLuIEZQihNZcACf SZWH
dxCj8NMXogDSWjG/iHfd3ak=
=mqx2
-----END PGP SIGNATURE-----
Re: WrapLabel- automatic font size possible? [message #160297 is a reply to message #160126] Wed, 14 November 2007 13:57 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Stefan,

We haven't implemented that behavior in the GMF Runtime. There are
methods in the FigureUtilities class that can determine how much space a
string will take in a certain font. This could help you if you wanted
to try to implement it.

Regards,
Cherie

SKuhn wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi all,
>
> is it possible to let the WrapLabel automatically decide its font size
> based on the space of the outer figure?
>
> e.g. I have a button figure, enter its name- resize the button figure
> but its name-size is fixed.
>
> - -stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHOnzEIYVWjMSpDwwRAvGHAJ9qQTRhJOmfFpBA0LLuIEZQihNZcACf SZWH
> dxCj8NMXogDSWjG/iHfd3ak=
> =mqx2
> -----END PGP SIGNATURE-----
Previous Topic:[Announce] The EclipseCon 2008 Submission Deadline is Rapidly Approaching.
Next Topic:Problem getting a Viewer (NPE)
Goto Forum:
  


Current Time: Tue Apr 23 09:23:57 GMT 2024

Powered by FUDForum. Page generated in 0.03715 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top