Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Animations in Graphiti
icon10.gif  Animations in Graphiti [message #1697501] Thu, 04 June 2015 12:48 Go to next message
Jerome Sivadier is currently offline Jerome SivadierFriend
Messages: 15
Registered: May 2015
Junior Member
Hello everybody,

I have seen that some people wanted to have animations in Graphiti and so did I, indeed I have stated to write a working animations framework for Graphiti.

Currently the supported animations are:
[*] Translation: a translation animation translates a shape following a delta_x and / or a delta_y variation
[*] Resize: a resize animation resizes a shape to the given size
[*] Transparency change: this animation modifies the transparency of a shape to the given transparency
[*] Compound: a compound animation is composed of one or several other animation(s) executed in sequence or in parallel

I have created a sample project for this animations framework and an enhancement bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=469392
This could be a nice optional feature for the moment, any code review(s) or other contributions will be nicely welcome Smile !

An improvement might be to code a generic animation which can take an EMF feature as parameter. This generic animation can then be declined to a BackgroundColor modification, ForegroundColor modification, Transparency modification, etc. I think this can be implemented the same way as the Transparency animation but I did not have the time to start the coding...

Jérôme.

[Updated on: Thu, 04 June 2015 13:01]

Report message to a moderator

Re: Animations in Graphiti [message #1697857 is a reply to message #1697501] Tue, 09 June 2015 06: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
Jérôme,

thanks for bringing this up and posting this. Also thanks for the coding
contribution. :-)

I plan to add this enhancement with the start of the next development cycle.
Any comments, requests ... from others interested are highly welcome.

Michael
Re: Animations in Graphiti [message #1699521 is a reply to message #1697857] Wed, 24 June 2015 18:44 Go to previous messageGo to next message
Marek Jagielski is currently offline Marek JagielskiFriend
Messages: 97
Registered: April 2012
Member
Hi,
Do animations make diagram "dirty"? For my needs I would like to have some animations during launch process however after stop I want that everything is like it was before.

Example:
https://www.youtube.com/watch?v=VfXY6RqPLm0
When I "debug" my diagram and there is a breakpoint stop on one port I would like that this port is slowly fickering. But user can still make some permanent change on diagram like moving objects.
I was thinking to do it via decorators - it requires working directly with GEF.

Marek
Re: Animations in Graphiti [message #1699522 is a reply to message #1699521] Wed, 24 June 2015 18:53 Go to previous message
Jerome Sivadier is currently offline Jerome SivadierFriend
Messages: 15
Registered: May 2015
Junior Member
Hello Marek,

Animations do make diagrams "dirty" if you don't modify the basic function implementation that checks for dirtiness because they will execute several operations on the shapes as if the user was doing them with the mouse. You can override the basic "isDirty" implementation to change this behavior. I think your request would be possible by using quick animations of about 100 - 200 ms and by ignoring the moves realized when an animation is done in the "isDirty" implementation but I have not tested this behavior yet.

Let us know if you success in doing such a feature !
Good luck,
Jerome
Previous Topic:adding icons to the palette
Next Topic:attaching a document as an attribute to an Eclass
Goto Forum:
  


Current Time: Fri Apr 19 21:46:06 GMT 2024

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

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

Back to the top