Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Automatically resize
Automatically resize [message #119860] Mon, 01 March 2004 08:29 Go to next message
Eclipse UserFriend
Originally posted by: bbdaffy.hotmail.com

Hi,

I am using the Draw2D example of the UML Diagram as a start to experiment
with GEF and Draw2D. Instead of hardcoding the diagram in the main method,
I modified it to read from an xml file. I do not wish to store the size of
each figure in the file, instead I hope the application can automatically
resize my figures accordingly.

My application is now being written as an Eclipse plugin and the figures
are created by an EditPart. I dun think I can use the setConstraint method
in this case, can I? If not, how can I auto-resize the figures upon
loading the xml file? Thanks.

Rgds,
Lee
Re: Automatically resize [message #119898 is a reply to message #119860] Mon, 01 March 2004 19:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaslade.yahoo.com

If you set a figures size to (-1,-1) then it will auto size itself to
what it needs to be to show all its content. (-1,-1) would be the size
you would use in your setConstraint.

Guy

Lee wrote:

> Hi,
>
> I am using the Draw2D example of the UML Diagram as a start to experiment
> with GEF and Draw2D. Instead of hardcoding the diagram in the main method,
> I modified it to read from an xml file. I do not wish to store the size of
> each figure in the file, instead I hope the application can automatically
> resize my figures accordingly.
>
> My application is now being written as an Eclipse plugin and the figures
> are created by an EditPart. I dun think I can use the setConstraint method
> in this case, can I? If not, how can I auto-resize the figures upon
> loading the xml file? Thanks.
>
> Rgds,
> Lee
>
Re: Automatically resize [message #120238 is a reply to message #119898] Wed, 03 March 2004 10:53 Go to previous message
Eclipse UserFriend
Originally posted by: bbdaffy.hotmail.com

Thanks... Managed to solve my problem. :)

Guy Slade wrote:

> If you set a figures size to (-1,-1) then it will auto size itself to
> what it needs to be to show all its content. (-1,-1) would be the size
> you would use in your setConstraint.

> Guy

> Lee wrote:

> > Hi,
> >
> > I am using the Draw2D example of the UML Diagram as a start to experiment
> > with GEF and Draw2D. Instead of hardcoding the diagram in the main method,
> > I modified it to read from an xml file. I do not wish to store the size of
> > each figure in the file, instead I hope the application can automatically
> > resize my figures accordingly.
> >
> > My application is now being written as an Eclipse plugin and the figures
> > are created by an EditPart. I dun think I can use the setConstraint method
> > in this case, can I? If not, how can I auto-resize the figures upon
> > loading the xml file? Thanks.
> >
> > Rgds,
> > Lee
> >
Previous Topic:GEF Assistance
Next Topic:Need HELP! Performance problem
Goto Forum:
  


Current Time: Thu Apr 25 08:20:30 GMT 2024

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

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

Back to the top