Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Spell checker like decoration (~~~~~~) for org.eclipse.draw2d.Label
Spell checker like decoration (~~~~~~) for org.eclipse.draw2d.Label [message #167480] Wed, 09 February 2005 08:42 Go to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
Hi,

I want add a decorator to the org.eclipse.draw2d.Label in my
GEF Editor.

The decoration should looks like the 'speel checker' decoration
in StarOffice, Word, ...

Like:

this is an errror ....
~~~~~~

If it possible to add such a decorator to a org.eclipse.draw2d.Label?

Or should I create the Deco-Label with a toolbar-layout with a label and
a dotted line?


greetings

Andreas Herz
Re: Spell checker like decoration (~~~~~~) for org.eclipse.draw2d.Label [message #167569 is a reply to message #167480] Wed, 09 February 2005 19:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You can subclass label and get the Text bounds, and draw the line
underneath. You won't be guaranteed that there is enough space for the line
unless you extend getPreferredSize.

"FreeGroup" <a.herz@FreeGroup.de> escreveu na mensagem
news:cucii4$otc$1@www.eclipse.org...
> Hi,
>
> I want add a decorator to the org.eclipse.draw2d.Label in my
> GEF Editor.
>
> The decoration should looks like the 'speel checker' decoration
> in StarOffice, Word, ...
>
> Like:
>
> this is an errror ....
> ~~~~~~
>
> If it possible to add such a decorator to a org.eclipse.draw2d.Label?
>
> Or should I create the Deco-Label with a toolbar-layout with a label and
> a dotted line?
>
>
> greetings
>
> Andreas Herz
Re: Spell checker like decoration (~~~~~~) for org.eclipse.draw2d.Label [message #167642 is a reply to message #167569] Wed, 09 February 2005 23:03 Go to previous message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
Thanks....I think your way is the 'light weight'.

LayoutManager+Label+Line is to heavy for such a simple
requirement ;-)



greetings and thanks

Andreas

Randy Hudson wrote:
> You can subclass label and get the Text bounds, and draw the line
> underneath. You won't be guaranteed that there is enough space for the line

....I think I attach 'MyOwnDrawLineBorder' to the Label. The Border have
enough space....I think
Previous Topic:ConnectionRouter
Next Topic:Help needed working with draw2d sample code for graphical tree layout
Goto Forum:
  


Current Time: Thu Apr 25 06:07:18 GMT 2024

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

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

Back to the top