Skip to main content



      Home
Home » Eclipse Projects » GEF » about flowlayout again(one picture worth thousand words)
about flowlayout again(one picture worth thousand words) [message #37421] Wed, 30 October 2002 08:43 Go to next message
Eclipse UserFriend
hi all,

Randy, and Scott, i've looked at what you've advised in previous posts. I
just attached a picture, please have a look at it. what i need is say greens
are on left, and reds are right side, like two independent flowlayouts...

any idea to make this job easier without implementing a sort of flowlayout?

thanx,
ozgur


  • Attachment: gef.png
    (Size: 1.78KB, Downloaded 106 times)
Re: about flowlayout again(one picture worth thousand words) [message #37455 is a reply to message #37421] Wed, 30 October 2002 09:59 Go to previous messageGo to next message
Eclipse UserFriend
I assume you want something like

-------------------------------
| ggggggg rrrrrrrrr|
| gggg rrrrr|
| gggggg rrrrrrr|
| gg rrrrrrrr|
| ggggg r|

-------------------------------

You could nest two vertical FlowLayouts (the second set to
ALIGN_RIGHTBOTTOM) inside a horizontal FlowLayout (with setFill(true).

Hope this helps,
-- Scott

============================================================ ==
Scott Stanchfield scott@javadude.com http://javadude.com

Lead author of "Effective VisualAge for Java, Version 3"
http://javadude.com/evaj

VisualAge for Java Tips and Tricks http://javadude.com/vaj
Visit for Java Enlightenment! http://www.jguru.com
============================================================ ==

"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
news:apoltt$1k3$1@rogue.oti.com...
> hi all,
>
> Randy, and Scott, i've looked at what you've advised in previous posts. I
> just attached a picture, please have a look at it. what i need is say
greens
> are on left, and reds are right side, like two independent flowlayouts...
>
> any idea to make this job easier without implementing a sort of
flowlayout?
>
> thanx,
> ozgur
>
>
>
Re: about flowlayout again(one picture worth thousand words) [message #37553 is a reply to message #37455] Wed, 30 October 2002 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

To nest two layouts, and two figures, you'd end up with 2 sets of children,
and therefore you probably need more EditParts to manage the two different
children sets. This is possible.

I did exactly the same thing for a UML class. I had a UMLClassEditPart. It
had two FeaturePanelEditParts (corresponding to 2 bogus model objects for
each feature). Each "Feature Panel" had its own set of children, for
example "attributes", and "operations". The FeaturePanels can be made
completely unknown at edit time by having them not register their Figures in
the VisualPartMap.

We probably need better support for EditPArts that are not selectable. If
anyone is pursuing such EditParts for the purpose of grouping multiple sets
of children, then let me know about it so we can better support this.


"Scott Stanchfield" <scott@javadude.com> wrote in message
news:apoqbq$4ch$1@rogue.oti.com...
> I assume you want something like
>
> -------------------------------
> | ggggggg rrrrrrrrr|
> | gggg rrrrr|
> | gggggg rrrrrrr|
> | gg rrrrrrrr|
> | ggggg r|
>
> -------------------------------
>
> You could nest two vertical FlowLayouts (the second set to
> ALIGN_RIGHTBOTTOM) inside a horizontal FlowLayout (with setFill(true).
>
> Hope this helps,
> -- Scott
>
> ============================================================ ==
> Scott Stanchfield scott@javadude.com http://javadude.com
>
> Lead author of "Effective VisualAge for Java, Version 3"
> http://javadude.com/evaj
>
> VisualAge for Java Tips and Tricks http://javadude.com/vaj
> Visit for Java Enlightenment! http://www.jguru.com
> ============================================================ ==
>
> "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> news:apoltt$1k3$1@rogue.oti.com...
> > hi all,
> >
> > Randy, and Scott, i've looked at what you've advised in previous posts.
I
> > just attached a picture, please have a look at it. what i need is say
> greens
> > are on left, and reds are right side, like two independent
flowlayouts...
> >
> > any idea to make this job easier without implementing a sort of
> flowlayout?
> >
> > thanx,
> > ozgur
> >
> >
> >
>
>
Re: about flowlayout again(one picture worth thousand words) [message #37953 is a reply to message #37553] Wed, 30 October 2002 20:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sy_cheung2.yahoo.com

Randy,

Could you pleaes clarify what you mean by "not register their figures in the
VisualPartMap", is there a method call for doing that.

I am doing a similar thing (group children into multiple sets and the group
editpart is not selectable), I appreciate if you can share your experience.

Thank you.

"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:aposjn$60h$1@rogue.oti.com...
> To nest two layouts, and two figures, you'd end up with 2 sets of
children,
> and therefore you probably need more EditParts to manage the two different
> children sets. This is possible.
>
> I did exactly the same thing for a UML class. I had a UMLClassEditPart.
It
> had two FeaturePanelEditParts (corresponding to 2 bogus model objects for
> each feature). Each "Feature Panel" had its own set of children, for
> example "attributes", and "operations". The FeaturePanels can be made
> completely unknown at edit time by having them not register their Figures
in
> the VisualPartMap.
>
> We probably need better support for EditPArts that are not selectable. If
> anyone is pursuing such EditParts for the purpose of grouping multiple
sets
> of children, then let me know about it so we can better support this.
>
>
> "Scott Stanchfield" <scott@javadude.com> wrote in message
> news:apoqbq$4ch$1@rogue.oti.com...
> > I assume you want something like
> >
> > -------------------------------
> > | ggggggg rrrrrrrrr|
> > | gggg rrrrr|
> > | gggggg rrrrrrr|
> > | gg rrrrrrrr|
> > | ggggg r|
> >
> > -------------------------------
> >
> > You could nest two vertical FlowLayouts (the second set to
> > ALIGN_RIGHTBOTTOM) inside a horizontal FlowLayout (with setFill(true).
> >
> > Hope this helps,
> > -- Scott
> >
> > ============================================================ ==
> > Scott Stanchfield scott@javadude.com http://javadude.com
> >
> > Lead author of "Effective VisualAge for Java, Version 3"
> > http://javadude.com/evaj
> >
> > VisualAge for Java Tips and Tricks http://javadude.com/vaj
> > Visit for Java Enlightenment! http://www.jguru.com
> > ============================================================ ==
> >
> > "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> > news:apoltt$1k3$1@rogue.oti.com...
> > > hi all,
> > >
> > > Randy, and Scott, i've looked at what you've advised in previous
posts.
> I
> > > just attached a picture, please have a look at it. what i need is say
> > greens
> > > are on left, and reds are right side, like two independent
> flowlayouts...
> > >
> > > any idea to make this job easier without implementing a sort of
> > flowlayout?
> > >
> > > thanx,
> > > ozgur
> > >
> > >
> > >
> >
> >
>
>
Re: about flowlayout again(one picture worth thousand words) [message #38148 is a reply to message #37953] Thu, 31 October 2002 08:39 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

registerVisuals(). This affects more than just selection. As a result of
this, creation, moving, and all other forms of targeting will also not see
the EditPart. That is why I want to propose a isSelectable() API on
EditPart. You would still be able to target the groups if you want, but
clicking on them will select the groups parent.

-randy

"Sam Cheung" <sy_cheung2@yahoo.com> wrote in message
news:apq0rq$s86$1@rogue.oti.com...
> Randy,
>
> Could you pleaes clarify what you mean by "not register their figures in
the
> VisualPartMap", is there a method call for doing that.
>
> I am doing a similar thing (group children into multiple sets and the
group
> editpart is not selectable), I appreciate if you can share your
experience.
>
> Thank you.
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> news:aposjn$60h$1@rogue.oti.com...
> > To nest two layouts, and two figures, you'd end up with 2 sets of
> children,
> > and therefore you probably need more EditParts to manage the two
different
> > children sets. This is possible.
> >
> > I did exactly the same thing for a UML class. I had a UMLClassEditPart.
> It
> > had two FeaturePanelEditParts (corresponding to 2 bogus model objects
for
> > each feature). Each "Feature Panel" had its own set of children, for
> > example "attributes", and "operations". The FeaturePanels can be made
> > completely unknown at edit time by having them not register their
Figures
> in
> > the VisualPartMap.
> >
> > We probably need better support for EditPArts that are not selectable.
If
> > anyone is pursuing such EditParts for the purpose of grouping multiple
> sets
> > of children, then let me know about it so we can better support this.
> >
> >
> > "Scott Stanchfield" <scott@javadude.com> wrote in message
> > news:apoqbq$4ch$1@rogue.oti.com...
> > > I assume you want something like
> > >
> > > -------------------------------
> > > | ggggggg rrrrrrrrr|
> > > | gggg rrrrr|
> > > | gggggg rrrrrrr|
> > > | gg rrrrrrrr|
> > > | ggggg r|
> > >
> > > -------------------------------
> > >
> > > You could nest two vertical FlowLayouts (the second set to
> > > ALIGN_RIGHTBOTTOM) inside a horizontal FlowLayout (with setFill(true).
> > >
> > > Hope this helps,
> > > -- Scott
> > >
> > > ============================================================ ==
> > > Scott Stanchfield scott@javadude.com http://javadude.com
> > >
> > > Lead author of "Effective VisualAge for Java, Version 3"
> > > http://javadude.com/evaj
> > >
> > > VisualAge for Java Tips and Tricks http://javadude.com/vaj
> > > Visit for Java Enlightenment! http://www.jguru.com
> > > ============================================================ ==
> > >
> > > "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> > > news:apoltt$1k3$1@rogue.oti.com...
> > > > hi all,
> > > >
> > > > Randy, and Scott, i've looked at what you've advised in previous
> posts.
> > I
> > > > just attached a picture, please have a look at it. what i need is
say
> > > greens
> > > > are on left, and reds are right side, like two independent
> > flowlayouts...
> > > >
> > > > any idea to make this job easier without implementing a sort of
> > > flowlayout?
> > > >
> > > > thanx,
> > > > ozgur
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:problem displaying(creating?) a connection
Next Topic:about figure of an editpart which has container role
Goto Forum:
  


Current Time: Sun Jun 29 08:28:54 EDT 2025

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

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

Back to the top