Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF zooming problem
GEF zooming problem [message #246488] Wed, 10 December 2008 06:37 Go to next message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Hi! All,

In my createPartControl(), I have tried the following -

root = new ScalableFreeformRootEditPart();
root.getZoomManager().setZoomAsText(ZoomManager.FIT_ALL);

not responding.

Where as root.getZoomManager().setZoom(double), working fine.

Could you please tell, why it is happening? Or, how to get rid of it?

Regards,
Manoj

Please also note that -
I have did the following also -

List zoomLevels = new ArrayList(3);
zoomLevels.add(ZoomManager.FIT_ALL);
zoomLevels.add(ZoomManager.FIT_WIDTH);
zoomLevels.add(ZoomManager.FIT_HEIGHT);
root.getZoomManager().setZoomLevelContributions(zoomLevels);
Re: GEF zooming problem [message #246527 is a reply to message #246488] Wed, 10 December 2008 09:31 Go to previous message
Eclipse UserFriend
Originally posted by: manojm.blr.interrasystems.com

Hi!

I did it by implementing the addPartListener.

Regards,
Manoj

Manoj Mitra wrote:
> Hi! All,
>
> In my createPartControl(), I have tried the following -
>
> root = new ScalableFreeformRootEditPart();
> root.getZoomManager().setZoomAsText(ZoomManager.FIT_ALL);
>
> not responding.
>
> Where as root.getZoomManager().setZoom(double), working fine.
>
> Could you please tell, why it is happening? Or, how to get rid of it?
>
> Regards,
> Manoj
>
> Please also note that -
> I have did the following also -
>
> List zoomLevels = new ArrayList(3);
> zoomLevels.add(ZoomManager.FIT_ALL);
> zoomLevels.add(ZoomManager.FIT_WIDTH);
> zoomLevels.add(ZoomManager.FIT_HEIGHT);
> root.getZoomManager().setZoomLevelContributions(zoomLevels);
Previous Topic:[Announce] GEF 3.5.0 I200812031449 is available
Next Topic:[Announce] GEF 3.5.0 I200812101736 is available
Goto Forum:
  


Current Time: Sat Apr 20 02:36:43 GMT 2024

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

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

Back to the top