Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Grids and Snap to Grid
Grids and Snap to Grid [message #237551] Fri, 03 August 2007 23:19 Go to next message
Sunil Ramaiah is currently offline Sunil RamaiahFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I would like to use grids and snap to grid feature in my tool. I am using
GraphicalEditorWithFlyoutPalette. And I am using the
ScrollingGraphicalViewer for my editor.

I am setting these attributes.

getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_VI SIBLE,
Boolean.TRUE);
getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_EN ABLED,
Boolean.TRUE);
getGraphicalViewer().setProperty(SnapToGeometry.PROPERTY_SNA P_ENABLED,
Boolean.TRUE);

I still cannot see the grids. Anything more to be done ?

Thanks,
Sunil.
Re: Grids and Snap to Grid [message #237577 is a reply to message #237551] Mon, 06 August 2007 03:09 Go to previous message
David BY Chan is currently offline David BY ChanFriend
Messages: 40
Registered: July 2009
Member
Sunil wrote:
> Hi,
>
> I would like to use grids and snap to grid feature in my tool. I am
> using GraphicalEditorWithFlyoutPalette. And I am using the
> ScrollingGraphicalViewer for my editor.
>
> I am setting these attributes.
>
> getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_VI SIBLE,
> Boolean.TRUE);
> getGraphicalViewer().setProperty(SnapToGrid.PROPERTY_GRID_EN ABLED,
> Boolean.TRUE);
> getGraphicalViewer().setProperty(SnapToGeometry.PROPERTY_SNA P_ENABLED,
> Boolean.TRUE);
>
> I still cannot see the grids. Anything more to be done ?
> Thanks,
> Sunil.
>
Hi, Sunil, pls refer the Logic Example which contains full details of
how to use Ruler and Guide, you can download it from Eclipes.org and
create the logic example project, then open the file LogicEditor.java
and locate the method loadProperties.
Previous Topic:selection handles can not appear
Next Topic:Drop from palette
Goto Forum:
  


Current Time: Thu Mar 28 09:12:39 GMT 2024

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

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

Back to the top