How do I increase the width of a figure based on text input [message #151262] |
Thu, 16 September 2004 21:25 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03093 seconds