I think the choice depends on the coordination
system used by children. If the children use the local one, the
alignment to grid should be relative to its parent. That means the children
of the container will be aligned with each other. Otherwise, they should be aligned with other objects outside that
container.
julien
----- Original Message -----
Sent: Tuesday, July 22, 2003 9:47
PM
Subject: Re: [gef-dev] Snap-to-Grid
implementations
What if the container itself
is not aligned to the grid? Or, the container is aligned to the grid,
but it has some amount of insets which results in its client area not being
aligned? Is the intent that the children of the container be aligned
with each other, or are they to be aligned with other objects outside that
container?
Thanks,
Randy
| "julien"
<julien@xxxxxxxxxx> Sent by: gef-dev-admin@xxxxxxxxxxx
07/22/2003 03:25 PM Please respond to gef-dev
| To:
<gef-dev@xxxxxxxxxxx> cc:
Subject: Re: [gef-dev]
Snap-to-Grid implementations |
Hi Randy,
For us, we do
expect the grid span into nested containers using XYLayoutEditPolicy and this
feature can be activated/deactivated as needed globally. Does this feature
apply to Mahanttan router as well ?
julien ----- Original
Message ----- From: Randy
Hudson To:
gef-dev@xxxxxxxxxxx Sent: Tuesday, July 22, 2003 7:33 PM Subject: Re: [gef-dev] Snap-to-Grid implementations
Actually, we can't look at your code
unless you post it to our newsgroup or mailing-list (or bugzilla). Legal
issues :-(
But, if you'd want to share just the approach and problems
encountered, that would be great. We think we know how to do this for
the logic example, but we wonder if this is representative of the typical
application. It's actually not a lot of code, but the key is where you
implement the code so that other's can tailor it to their
application.
I
think the questions are how does the grid span into nested containers?
Does it? When does the grid appear?
-Randy
| "Alex Selkov"
<as@xxxxxxxxxxxxxx> Sent by:
gef-dev-admin@xxxxxxxxxxx
07/22/2003 01:03 PM
Please respond to
gef-dev
|
To:
<gef-dev@xxxxxxxxxxx>
cc: Subject:
Re: [gef-dev] Snap-to-Grid
implementations |
Dan,
you may look at our
sample HelloGrid plugin
in :pserver:anonymous@xxxxxxxxxxxxxx:/usr/cvsroot
Regards,
as
>
We are in the process of adding Snap-to-Grid functionality to GEF. If
you > have implemented snap-to-grid in your editor, we are
interested in any > advice that can be given on this subject. > In
particular: > Has anyone made a zoom-able editor that handles
snap-to-grid? What > coordinate system issues were involved
here? > What EditPolicy changes were made to allow the "snap" ? >
Does your editor make its feedback snap to the grid, or just the
Figures > themselves? If feedback snaps, how was this
implemented? > How did you paint the grid in your
editor? > > Thanks > >
Dan > > >
_______________________________________________ gef-dev
mailing
list gef-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/gef-dev
|