Hi Steve,
I did not try to turn the grid on/off, but
I remember having seen that option with the logic example. I use Eclipse 3.0M7,
GEF 3.0 and I was able to do it. I however did not see the grid when I used
Eclipse 2.1.2. Has anyone else observed the grid in the logic example? Did you
get any response in this regard? Unfortunately, I cant
check it up until Monday.
Good luck..
Bharath.
-----Original Message-----
From: gef-dev-admin@xxxxxxxxxxx
[mailto:gef-dev-admin@xxxxxxxxxxx] On Behalf
Of steven melzer
Sent: Saturday, April 17, 2004 2:56 PM
To: gef-dev@xxxxxxxxxxx
Subject: Re: [gef-dev] enabling a
grid
i installed the samples, flow and
logic. i have tried both samples and neither have a "turn grid
on" option that i can find. can you tell me how to turn them
on? i looked in the source, but wasn't quite sure what to look for.
also, there appears to be some kind
of "snap to grid" constant in the GridLayer object. can someone
show me an example in code of using such functionality?
----- Original Message -----
Sent: Saturday, April 17, 2004 1:05 AM
Subject: RE:
[gef-dev] enabling a grid
Hi steve,
Download the GEF logic
example, it has source code from which you can figure out how to draw a grid.
G’luck.
Bharath.
-----Original Message-----
From: gef-dev-admin@xxxxxxxxxxx
[mailto:gef-dev-admin@xxxxxxxxxxx] On Behalf
Of steven melzer
Sent: Friday, April 16, 2004 10:11 PM
To: gef-dev@xxxxxxxxxxx
Subject: [gef-dev] enabling a grid
i am very new to GEF. i want
to create a viewer that contains a grid (and can be turned off). it appears
that the ScalableFreeformRootEditPart contains a GridLayer and GridLayer has
methods to add a grid. The GridLayer has a method called paintGrid which
has the JavaDoc saying the grid needs to be enabled. i cannot figure out
how to enable the grid. Can someone tell me how to enable the grid and
display the grid on the ScrollingGraphicViewer.