Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Adding gestures in Graphiti
Adding gestures in Graphiti [message #1557051] Sat, 10 January 2015 18:33 Go to next message
Pedro Serreria is currently offline Pedro SerreriaFriend
Messages: 2
Registered: January 2015
Junior Member
Hi everyone!!

I am working in a Graphiti based editor to draw UML diagrams, but I am interested in employ gestures using fingers instead of mouse to draw the elements of a diagram.

I dont' know if it is possible in Graphiti.

I had tried to add mouse listener in a View to implement mouse dragged, mouse release in a RCP Eclipse application (plug-in application) but it is not working.

Any idea?

Thank you very much in advance!



Re: Adding gestures in Graphiti [message #1563565 is a reply to message #1557051] Wed, 14 January 2015 09:15 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Pedro,

so far Graphiti does not offer special touch support, but touch gestures
being interpreted as clicks or dragging should be possible. I know there is
more support for touch gestures in GEF but I did not try that out yet.

Maybe it would make sense to open an enhancement bug against Graphiti for
introducing this feature. However, I cannot promise that much will happen on
this due to capacity limitations...

Michael
Re: Adding gestures in Graphiti [message #1567656 is a reply to message #1563565] Fri, 16 January 2015 13:48 Go to previous messageGo to next message
Pedro Serreria is currently offline Pedro SerreriaFriend
Messages: 2
Registered: January 2015
Junior Member
Hi Michael!

I understand the current situation mentioned in your message, but I'm interested in the inclusion of gestural interaction using fingers to draw the shapes of the diagrams, but I need some information about Graphiti, for example, Graphit is based on the MVC architecture, right?

For instance, as I can identify elements of the "View" component of MVC to add the type of interaction to be recognized besides the typical actions with mouse (click, double click)?

The idea is that the user employs a finger (or pen) to sketch a class, an enumeration and associations on the canvas and the "component to handle gestures" recognize that action and convert the symbols in others already defined in the Graphiti's palette

I hope that can help me with references to information (tutorial, source code examples, etc.) about these topics. I already read the online help of Graphiti in Eclipse website but I need extra information to do this task.


Greetings


Pedro
Re: Adding gestures in Graphiti [message #1574907 is a reply to message #1567656] Tue, 20 January 2015 14:08 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Pedro,

yes, Graphiti is based upon GEF and uses MVC. Not sure though if there can
be just one component that handles gestures or if all edit parts need to
support them. For adding new stuff the gesture support will probably be
hooked into the diagram root edit part.

Since I did not yet work with gestures in GEF, I'm afraid I cannot give
concrete hooks. But I think that you should rather check for tutorials or
docu on GEF level, Graphiti is one abstraction layer above and will need to
use those GEF features for gestures. Have you tried googling for GEF
gesture?

Adding this functionality would surely be interesting, and since this will
require adoption on GEF level I guess the best place to code this would be
inside the framework. It would be cool if at least parts of what you intend
to do could flow back into Graphiti...

Michael
Source code of Graphiti [message #1692125 is a reply to message #1574907] Mon, 13 April 2015 16:55 Go to previous messageGo to next message
Otto Parra is currently offline Otto ParraFriend
Messages: 2
Registered: July 2014
Junior Member
Hi!

I am working in the inclusion of gestures in GEF, using the fingers to draw the symbols (rectangle, ellipse, etc.) in a diagram. I am able to draw these symbols with the fingers in GEF but, I'm interested in the inclusion of this feature in Graphiti. Can anybody help me about where I can download the source code of Graphiti?

Is there some relation between jar files of GEF and Graphiti?
Re: Source code of Graphiti [message #1692701 is a reply to message #1692125] Fri, 17 April 2015 11:51 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Otto,

would be a cool feature for Graphiti, so keep me in the loop... :-)

The source code of Graphiti is available in the Eclipse Git repo, for
details how to set that up in Eclipse, see
https://wiki.eclipse.org/Graphiti#Repository

Regarding the relationship: Graphiti uses GEF, namely the version that is
part of the same Eclipse release train (or a compatible version range).

Hope that helps.

Michael
Customizing the palette of Graphiti [message #1694215 is a reply to message #1692701] Sat, 02 May 2015 10:35 Go to previous messageGo to next message
Otto Parra is currently offline Otto ParraFriend
Messages: 2
Registered: July 2014
Junior Member
I am trying to add an option in the palette of Graphiti, in the same group of "Selection" and "Marquee".

-------------------------
Palette
-------------------------
Selection
Marquee
MyOption <=======
------------------------
Group 1
------------------------
Element 1
Element 2
-----------------------
Group 2
-----------------------
Element 3
Element 4
----------------------

"MyOption" is including source code to manage the elements of a diagram (which are specified in the other groups of the palette: Element1, Element 2, and so on).

I checked the source code of Graphiti and GFPaletteRoot contains code to add "Selection" and "Marquee" (in createModelIndependentTools), and my Editor contains the definition of the others elements of the palette (included in MyEditorToolBehaviorProvider).

I need to define "Selection" and "Marquee" in MyEditor, instead of the definitions included in Graphiti, it is possible?

GEF employs this scheme because in the application is defined all the palette, for example, Shapes (in GEF) contains the definition of all of the palette.

Greetings

Otto
Re: Customizing the palette of Graphiti [message #1703693 is a reply to message #1694215] Tue, 04 August 2015 09:57 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

were you able to make some improvement son Gestures side?

If not, I would recommend to take a look to Eclipse Sketch, an old archived Eclipse projects which was proposing some gestures for GEF/GMF https://projects.eclipse.org/projects/technology.sketch

Some ideas can come from GEF 4 Gestures support too https://wiki.eclipse.org/GEF/GEF4/FX#Gestures

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:EXECUTABLE DIAGRAMS
Next Topic:Drag and Drop Multiple Pictogram elements from the Palette
Goto Forum:
  


Current Time: Tue Mar 19 04:46:13 GMT 2024

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

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

Back to the top