Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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

 

hello,

 

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.

 

thanks,

steve


Back to the top