Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zoom in horizontally on draw2d canvas
Zoom in horizontally on draw2d canvas [message #503635] Tue, 15 December 2009 05:00 Go to next message
sneha is currently offline snehaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I have a view which is divided in 2 sections: draw2d canvas A and canvas
B. Both the canvas have a Scalable layered pane. I have implemented zoom
in - out functionality which works fine. Zoom in-out can be done by
using setScale() method of Scalable layered pane.
Problem description:
Canvas A is drawn in upper half of the view. Whereas canvas B lies in
lower half. Now for canvas A, when zoom in-out action is performed, I
would like the canvas to zoom in-out only widthwise. At present, using
the setScale method of Scalable layered pane causes the canvas to be
zoomed in-out both horizontally and vertically.

Is there a way we can zoom in-out only horizontally on a draw2d canvas A?
Can this be done on a scalable layered pane?

Any help/pointers are appreciated.

Thanks in advance,
Sneha
Re: Zoom in horizontally on draw2d canvas [message #504294 is a reply to message #503635] Fri, 18 December 2009 06:24 Go to previous message
sneha is currently offline snehaFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

If anyone has faced similar requirement as mentioned in my previous post
and has some solution / pointer it would be of great help.

Thanks,
Sneha


sneha wrote:
> Hi,
>
> I have a view which is divided in 2 sections: draw2d canvas A and canvas
> B. Both the canvas have a Scalable layered pane. I have implemented zoom
> in - out functionality which works fine. Zoom in-out can be done by
> using setScale() method of Scalable layered pane.
> Problem description:
> Canvas A is drawn in upper half of the view. Whereas canvas B lies in
> lower half. Now for canvas A, when zoom in-out action is performed, I
> would like the canvas to zoom in-out only widthwise. At present, using
> the setScale method of Scalable layered pane causes the canvas to be
> zoomed in-out both horizontally and vertically.
>
> Is there a way we can zoom in-out only horizontally on a draw2d canvas A?
> Can this be done on a scalable layered pane?
>
> Any help/pointers are appreciated.
>
> Thanks in advance,
> Sneha
Previous Topic:[Announce] GEF 3.6.0M4 is available
Next Topic:Dragging multiple figures vs. one
Goto Forum:
  


Current Time: Fri Apr 26 23:50:22 GMT 2024

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

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

Back to the top