GEF Layout questions [message #247765] |
Tue, 17 March 2009 20:06  |
Eclipse User |
|
|
|
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] |
Tue, 17 March 2009 21:42   |
Eclipse User |
|
|
|
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!
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07831 seconds