Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF Layout questions
GEF Layout questions [message #247765] Wed, 18 March 2009 00:06 Go to next message
Bryan Coon is currently offline Bryan CoonFriend
Messages: 5
Registered: July 2009
Junior Member
Hi there, Im trying to create a layout to display data like somewhat like
this:

Data1 ---+---+---+---+---+---+---+---+
Samp1 x--x-x---x----------------x--x--
Samp2 x--x-x---x----xx--xx-x-----x---x

Data2 ---+---+---+---+---+
Samp1 --x------xxx-------x
Samp2 ----x---xxx----x-x--

Where Data and Sample are labels, and rest are Figures showing rulers (for
data) or actual graphics for the Samples.

In creating my models, I have created a root model, with its children
being the Data models, and their children being the Sample models.

But I am having a hard time getting things to display properly. I tried
an XYLayout, but it requires a load of positional and size data that is
difficult to calculate. The ToolbarLayout just stacks things, so it
doesnt seem possible to draw my Sample figures -in- my Data figures- right
now these are separate classes.

FlowLayout also doesnt seem to be what I want...

Do I need to have just 1 figure class for the Data element, that knows how
many Sample figures to draw (not sure how though!) or should they remain
separate? How do I manage this? Have looked at all the tutorials I could
find and still a bit confused...

Thanks!
Re: GEF Layout questions [message #247769 is a reply to message #247765] Wed, 18 March 2009 01:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kathir.atc.tcs.com

Hi,
you can try adding toolbar layout to your Data1 and Samp figures and try. i
did a sample. Let me know if it helps.

is there any other layout applicable to this, anyone?

-ksg.


"Bryan Coon" <bccoon@gmail.com> wrote in message
news:0b131460f35881c20d9acec62087b05a$1@www.eclipse.org...
> Hi there, Im trying to create a layout to display data like somewhat like
> this:
>
> Data1 ---+---+---+---+---+---+---+---+
> Samp1 x--x-x---x----------------x--x--
> Samp2 x--x-x---x----xx--xx-x-----x---x
>
> Data2 ---+---+---+---+---+
> Samp1 --x------xxx-------x
> Samp2 ----x---xxx----x-x--
>
> Where Data and Sample are labels, and rest are Figures showing rulers (for
> data) or actual graphics for the Samples.
>
> In creating my models, I have created a root model, with its children
> being the Data models, and their children being the Sample models.
>
> But I am having a hard time getting things to display properly. I tried
> an XYLayout, but it requires a load of positional and size data that is
> difficult to calculate. The ToolbarLayout just stacks things, so it
> doesnt seem possible to draw my Sample figures -in- my Data figures- right
> now these are separate classes.
>
> FlowLayout also doesnt seem to be what I want...
>
> Do I need to have just 1 figure class for the Data element, that knows how
> many Sample figures to draw (not sure how though!) or should they remain
> separate? How do I manage this? Have looked at all the tutorials I could
> find and still a bit confused...
>
> Thanks!
>


Re: GEF Layout questions [message #247774 is a reply to message #247769] Wed, 18 March 2009 02:02 Go to previous messageGo to next message
Bryan Coon is currently offline Bryan CoonFriend
Messages: 5
Registered: July 2009
Junior Member
Tried that, ended up with a structure where the Data areas were blank and
then the Sample figures followed- they were not layered.

Ill keep tweaking it, maybe Ill get there :)
Re: GEF Layout questions [message #247777 is a reply to message #247769] Wed, 18 March 2009 02:04 Go to previous message
Bryan Coon is currently offline Bryan CoonFriend
Messages: 5
Registered: July 2009
Junior Member
Oh and sorry, how do I get the attachment? Would very much like to look
at your sample.

Thanks!
Previous Topic:[Announce] GEF 3.5.0 I200903161158 is available
Next Topic:eclipse draw2d api
Goto Forum:
  


Current Time: Mon Sep 23 01:22:27 GMT 2024

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

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

Back to the top