Skip to main content



      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 03:42 Go to next message
Eclipse UserFriend
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 14: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 18:03 Go to previous message
Eclipse UserFriend
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: Wed Jun 18 15:28:52 EDT 2025

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

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

Back to the top