|
Re: Grids and Snap to Grid [message #237577 is a reply to message #237551] |
Mon, 06 August 2007 03:09 |
David BY Chan 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03273 seconds