Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Zoom(Zooming in and out)
Zoom [message #1096343] Wed, 28 August 2013 05:01 Go to next message
John Cole is currently offline John Cole
Messages: 26
Registered: June 2013
Junior Member
Hello everyone!

I aks myself, if it is possible to zoom in the created graphiti editor. Do I have to implement a feature for that?

I'd appreciate any advice!

[Updated on: Wed, 28 August 2013 05:01]

Report message to a moderator

Re: Zoom [message #1096760 is a reply to message #1096343] Wed, 28 August 2013 16:50 Go to previous messageGo to next message
Robert Brodt is currently offline Robert Brodt
Messages: 577
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

So I sez to myself, I sez: is it possible to use the mouse wheel + CTRL key to zoom like in a web browser?
Re: Zomm [message #1097052 is a reply to message #1096343] Thu, 29 August 2013 03:12 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
John,

yes, it's possible and you don't have to do anything for it. There are zoom
button e.g. in the toolbar of the editor by default.

Michael
Re: Zoom [message #1097062 is a reply to message #1096760] Thu, 29 August 2013 03:22 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Not yet, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=323356

Michael
Re: Zoom [message #1097070 is a reply to message #1096760] Thu, 29 August 2013 03:32 Go to previous messageGo to next message
Albert Hofkamp is currently offline Albert Hofkamp
Messages: 41
Registered: August 2009
Member
Given that everything is a feature in Graphiti, needing to implement it as a feature seems logical to me.
The API reference of features does not list a zoom feature, so I think it doesn't exist, and you should make it a custom feature.

At a more conceptual level, I wonder why you need zoom. The outline view gives you an overview of the editor space, and your normal view is used for actual editing. Imho the latter becomes less useful if you start zooming it. Text with a size like 5pt or 20pt doesn't work as nicely for editing as the usual 10pt. If you zoom but without changing the text size, your text-elements shrink or grow in your picture while zooming which seems to be a not so nice property either.

Wouldn't it be possible to split your editor contents into several different editor views, eg like the drilldown feature in the tutorial?

Re: Zoom [message #1097100 is a reply to message #1097062] Thu, 29 August 2013 04:29 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas Graf
Messages: 151
Registered: July 2009
Senior Member
You might get inspiration from
https://eclipse.googlesource.com/featuremodel/org.eclipse.featuremodel.editor.diagram/+/e85c7ebc17abcdca0692615c908f02e06cc51c8c/org.eclipse.featuremodel.diagrameditor/src/org/eclipse/featuremodel/diagrameditor/FMEDiagramEditor.java

(I did not try this yet).

Andreas
Re: Zoom [message #1097180 is a reply to message #1097100] Thu, 29 August 2013 06:35 Go to previous message
Felix Velasco is currently offline Felix Velasco
Messages: 43
Registered: July 2009
Member
I'm trying a very similar approach, but directly in the GraphitiScrollingGraphicalViewer, so it works both for the DiagramEditor and the DiagramComposite. However, scrolling with the mouse wheel provokes bug 414437 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=414437) really often, so I'll try and work on both of them at once.
Previous Topic:Copy And Paste of graphical Elements
Next Topic:Custom DirectEditManager
Goto Forum:
  


Current Time: Sat Jul 26 03:14:07 EDT 2014

Powered by FUDForum. Page generated in 0.03424 seconds