Skip to main content


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 09:01 Go to next message
John Cole is currently offline John ColeFriend
Messages: 66
Registered: June 2013
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 09:01]

Report message to a moderator

Re: Zoom [message #1096760 is a reply to message #1096343] Wed, 28 August 2013 20:50 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
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 07:12 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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 07:22 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
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 07:32 Go to previous messageGo to next message
Albert Hofkamp is currently offline Albert HofkampFriend
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 08:29 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
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 10:35 Go to previous message
Felix Velasco is currently offline Felix VelascoFriend
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: Fri Apr 19 18:45:20 GMT 2024

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

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

Back to the top