Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » zoom and pan
zoom and pan [message #194144] Tue, 30 August 2005 23:02 Go to next message
Eclipse UserFriend
Originally posted by: eriksen.ai.sri.com

Hi, I want to implement a zoom and pan functionality like the one in
maps.google.com. Before I go off and hack some code together I thought I
would ask if anyone had done this already and were willing to share their
code or if anyone has some pointer to where to look for example code.



Thanks,



Michael
Re: zoom and pan [message #194153 is a reply to message #194144] Wed, 31 August 2005 01:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Can you be more descriptive? Don't scrollbars already provide panning? There
is also a panning selection tool. Are you loading a subset of a large model?

"Michael A. Eriksen" <eriksen@ai.sri.com> wrote in message
news:df2oee$7j5$1@news.eclipse.org...
> Hi, I want to implement a zoom and pan functionality like the one in
> maps.google.com. Before I go off and hack some code together I thought I
> would ask if anyone had done this already and were willing to share their
> code or if anyone has some pointer to where to look for example code.
>
>
>
> Thanks,
>
>
>
> Michael
>
>
Re: zoom and pan [message #194167 is a reply to message #194153] Wed, 31 August 2005 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eriksen.ai.sri.com

Yes I'm loading a large GXL model and I like the way maps.google.com have
controls overlay, legend and mouse navigation. From a personal perspective I
don't really like scrollbars and find point-click and drag more intuative to
navigate a large model.



"Randy Hudson" <none@us.ibm.com> wrote in message
news:df30vf$ffd$1@news.eclipse.org...
> Can you be more descriptive? Don't scrollbars already provide panning?
> There is also a panning selection tool. Are you loading a subset of a
> large model?
>
> "Michael A. Eriksen" <eriksen@ai.sri.com> wrote in message
> news:df2oee$7j5$1@news.eclipse.org...
>> Hi, I want to implement a zoom and pan functionality like the one in
>> maps.google.com. Before I go off and hack some code together I thought I
>> would ask if anyone had done this already and were willing to share their
>> code or if anyone has some pointer to where to look for example code.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Michael
>>
>>
>
>
Re: zoom and pan [message #194181 is a reply to message #194167] Wed, 31 August 2005 14:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I'm not sure what GXL is, but couldn't you just place buttons along the
outside of the Canvas which change some property for your view? GEF already
has Zoom support and you can add whatever UI you want to change the zoom
value.

I think the real problem is finding the subsection of the model that should
be displayed by the viewer. That sounds pretty specific to your
model/application.
Re: zoom and pan [message #194367 is a reply to message #194181] Thu, 01 September 2005 14:06 Go to previous message
Eclipse UserFriend
Originally posted by: harsh.ti.com

Just to extend this a little. I was reading up on the ZoomManager class
and it was saying if you want the contribution level to be different than
FIT_ALL, FIT_WIDTH, and FIT_HEIGHT then you have to derive you own
ZoomManager class and define this "new level".

So to do say a point and click operation to zoom in a particular area, I
think you will need to do this.

Harsh
Previous Topic:Copy/Cut and Paste Facility
Next Topic:Problem with TreeViewer in GEF
Goto Forum:
  


Current Time: Fri Apr 19 07:46:20 GMT 2024

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

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

Back to the top