Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zoom and pan actions / tools
Zoom and pan actions / tools [message #140665] Tue, 29 June 2004 16:27 Go to next message
Dolev Dotan is currently offline Dolev DotanFriend
Messages: 6
Registered: July 2009
Junior Member
Hi!
I tried to look for zoom and pan Actions or Tools (and their Pallete
Entries) and havn't found any.
Am I missing something? If not- it this feature planned for the near future?

Thanks
Dolev

--------------------------------------------------
Dolev Dotan
Department of Computer Science
Technion - Israel Institute of Technology
---------------------------------------------------
Re: Zoom and pan actions / tools [message #140709 is a reply to message #140665] Tue, 29 June 2004 15:58 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
For panning, you need to simply replace SelectionTool with
PanningSelectionTool.

Adding zoom support is a little more complicated. You'll have to use a
scalable root (ScalableRootEditPart or ScalableFreeformRootEditPart). They
create a ZoomManager and have scalable layers. Look at
LogicEditor#configureGraphicalViewer to get started.

"Dolev Dotan" <dolevd@cs.technion.ac.il> wrote in message
news:cbs1r3$9k8$1@eclipse.org...
> Hi!
> I tried to look for zoom and pan Actions or Tools (and their Pallete
> Entries) and havn't found any.
> Am I missing something? If not- it this feature planned for the near
future?
>
> Thanks
> Dolev
>
> --------------------------------------------------
> Dolev Dotan
> Department of Computer Science
> Technion - Israel Institute of Technology
> ---------------------------------------------------
>
>
Re: Zoom and pan actions / tools [message #140862 is a reply to message #140709] Wed, 30 June 2004 06:57 Go to previous messageGo to next message
Dolev Dotan is currently offline Dolev DotanFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks, Pratik!

IMHO, I think there should be also a panning tool (and its corresponding
pallete ToolEntry) which is separate from the selection, as this is very
common today and it might not come naturally for users to pan using the
space bar.
Also, a ready-made zoom tool, which of course uses the ZoomManager's
abilities, might be very useful.

BTW, I don't know how it works- when (if) I come aroung to writing such
tools, can I submit them as contributions for GEF?

Dolev




"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:cbs3io$e13$1@eclipse.org...
> For panning, you need to simply replace SelectionTool with
> PanningSelectionTool.
>
> Adding zoom support is a little more complicated. You'll have to use a
> scalable root (ScalableRootEditPart or ScalableFreeformRootEditPart).
They
> create a ZoomManager and have scalable layers. Look at
> LogicEditor#configureGraphicalViewer to get started.
>
> "Dolev Dotan" <dolevd@cs.technion.ac.il> wrote in message
> news:cbs1r3$9k8$1@eclipse.org...
> > Hi!
> > I tried to look for zoom and pan Actions or Tools (and their Pallete
> > Entries) and havn't found any.
> > Am I missing something? If not- it this feature planned for the near
> future?
> >
> > Thanks
> > Dolev
> >
> > --------------------------------------------------
> > Dolev Dotan
> > Department of Computer Science
> > Technion - Israel Institute of Technology
> > ---------------------------------------------------
> >
> >
>
>
Re: Zoom and pan actions / tools [message #141228 is a reply to message #140862] Thu, 01 July 2004 22:54 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
"Dolev Dotan" <dolevd@cs.technion.ac.il> wrote in message
news:cbtkpk$5rb$1@eclipse.org...
> Thanks, Pratik!
>
> IMHO, I think there should be also a panning tool (and its corresponding
> pallete ToolEntry) which is separate from the selection, as this is very
> common today and it might not come naturally for users to pan using the
> space bar.

Perhaps. It shouldn't be too difficult to write such a tool for yourself.

> Also, a ready-made zoom tool, which of course uses the ZoomManager's
> abilities, might be very useful.

Another example of something that's not too difficult to do. However, I
think Ctrl++ and Ctrl+- provide sufficient functionality and demonstrate
well enough what can be done.

>
> BTW, I don't know how it works- when (if) I come aroung to writing such
> tools, can I submit them as contributions for GEF?

Certainly. I am not sure exactly how it would work either. I don't think
anybody has (certainly not in the time that I have been here) contributed
brand new code to GEF. But one way we can go about doing this is to have
you create a patch in Eclipse for the GEF plugin. We can then review the
code and decide on whether or not to release it to the GEF steam.

>
> Dolev
>
>
>
>
> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> news:cbs3io$e13$1@eclipse.org...
> > For panning, you need to simply replace SelectionTool with
> > PanningSelectionTool.
> >
> > Adding zoom support is a little more complicated. You'll have to use a
> > scalable root (ScalableRootEditPart or ScalableFreeformRootEditPart).
> They
> > create a ZoomManager and have scalable layers. Look at
> > LogicEditor#configureGraphicalViewer to get started.
> >
> > "Dolev Dotan" <dolevd@cs.technion.ac.il> wrote in message
> > news:cbs1r3$9k8$1@eclipse.org...
> > > Hi!
> > > I tried to look for zoom and pan Actions or Tools (and their Pallete
> > > Entries) and havn't found any.
> > > Am I missing something? If not- it this feature planned for the near
> > future?
> > >
> > > Thanks
> > > Dolev
> > >
> > > --------------------------------------------------
> > > Dolev Dotan
> > > Department of Computer Science
> > > Technion - Israel Institute of Technology
> > > ---------------------------------------------------
> > >
> > >
> >
> >
>
>
Previous Topic:Should use graphical editor with Pallette or Without
Next Topic:New Features Possible?
Goto Forum:
  


Current Time: Sat Apr 27 02:54:09 GMT 2024

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

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

Back to the top