Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How do I increase the width of a figure based on text input
How do I increase the width of a figure based on text input [message #151262] Thu, 16 September 2004 21:25 Go to next message
Eclipse UserFriend
Originally posted by: damesd.gmail.com

Does anyone know of any examples for increasing the width of a figure
based on the length of text inputed into a TextCellEditor? Let me also
add that my figures are based on custom graphics.

I have tried some things, but I'm having to update the figure's bounds
in paintFigure(). This leaves me with no clear way of updating the model
to reflect the new figure size.
Re: How do I increase the width of a figure based on text input [message #151271 is a reply to message #151262] Thu, 16 September 2004 21:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This has been asked before. Use -1,-1 for the figure's width/height
"Dwayne Dames" <damesd@gmail.com> wrote in message
news:cid03s$l79$1@eclipse.org...
> Does anyone know of any examples for increasing the width of a figure
> based on the length of text inputed into a TextCellEditor? Let me also
> add that my figures are based on custom graphics.
>
> I have tried some things, but I'm having to update the figure's bounds
> in paintFigure(). This leaves me with no clear way of updating the model
> to reflect the new figure size.
Re: How do I increase the width of a figure based on text input [message #151341 is a reply to message #151262] Fri, 17 September 2004 14:10 Go to previous message
Eclipse UserFriend
Originally posted by: damesd.gmail.com

Dwayne Dames wrote:

> Does anyone know of any examples for increasing the width of a figure
> based on the length of text inputed into a TextCellEditor? Let me also
> add that my figures are based on custom graphics.
>
> I have tried some things, but I'm having to update the figure's bounds
> in paintFigure(). This leaves me with no clear way of updating the model
> to reflect the new figure size.


OK, I think I found a way to update the model first through the use of
FigureUtilities.
Previous Topic:Drop Down List in a GEF Editor
Next Topic:Changeing Z-order
Goto Forum:
  


Current Time: Sun Jan 19 21:09:33 GMT 2025

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

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

Back to the top