Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Is there some animation support in e4?
Is there some animation support in e4? [message #988223] Wed, 28 November 2012 22:36 Go to next message
Alexander Friesen is currently offline Alexander FriesenFriend
Messages: 1
Registered: November 2012
Junior Member
Is it somehow possible to do some simple eye candy in e4?
Like fading in/out parts or windows?
Re: Is there some animation support in e4? [message #988268 is a reply to message #988223] Thu, 29 November 2012 08:37 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can take a look how the perspective fading is implement. Doing
animations with SWT is not that easy.

If you want to write really fancy UIs with animation you can take a look
at my JavaFX rendering engine [1], sample apps are shown at [2].

Drawback:
* you need to learn a new UI-Toolkit
* you can't use your current SWT stuff

Advantage:
* you get a amazing new UI which is completely customizable
* you get top notch tooling to design your UI
* you use the e4 framework stuff like DI, Handlers, ...
* you can do fancy animations

[1]http://www.efxclipse.org/
[2]http://tomsondev.bestsolution.at/2012/10/29/eclipsecon-javafx-demo-app-videos/

Am 29.11.12 04:25, schrieb Alexander Friesen:
> Is it somehow possible to do some simple eye candy in e4?
> Like fading in/out parts or windows?
>
Re: Is there some animation support in e4? [message #988285 is a reply to message #988268] Thu, 29 November 2012 09:33 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Thnx Tom.
Will I have to rewrite all the renderers, or how is SWT replaced by JavaFX?
Re: Is there some animation support in e4? [message #988289 is a reply to message #988285] Thu, 29 November 2012 09:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

It's not your task to rewrite the renderers, "all" you need to rewrite
is the MParts content and use JavaFX. The nice thing is that you can do
this step by step.

Say you have 10 parts written in SWT and now you start writing a 11th
you can decide to write it in JavaFX and embedd it into your e4-SWT
applications by using FXCanvas (or use
https://github.com/tomsontom/e-fx-clipse/tree/master/at.bestsolution.efxclipse.runtime.di
which provides a context-function to make automagically embedd your part
into SWT).

Now you can gradually reimplement your SWT parts through JavaFX
counterparts and once you are done you exchange the SWT-Rendering engine
through the JavaFX one provided by us and you are done ;-)

All stuff like DI, Databinding, ... is available in the FX world.

I once played with implementing the SWT-API ontop of JavaFX but after
exploring that it can be done I didn't follow this route
(http://tomsondev.bestsolution.at/2012/06/05/almost-totally-crazy/).

My personal opinion is that if you need start writing or porting an
application *today* you should really consider JavaFX. IMO it is the way
for UIs in Java for the next decade.

Tom

Am 29.11.12 10:33, schrieb Alex Kipling:
> Thnx Tom.
> Will I have to rewrite all the renderers, or how is SWT replaced by JavaFX?
Re: Is there some animation support in e4? [message #988294 is a reply to message #988289] Thu, 29 November 2012 10:06 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Sounds really great,

but if I understood right - there is some kind of FXCanvas INSIDE A PART, which one can do animation on.
How about the integration of JavaFX into the e4 platform itselfe?
Will there be a possibility to do some animation with parts themselves?
Fading them in/out? Moving them? Or will I use this, by subclasssing Part and introducing a FXCanvasPart, which will then be used by the platform on default?
Re: Is there some animation support in e4? [message #988302 is a reply to message #988294] Thu, 29 November 2012 10:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
FXCanvas is the JavaFX <=> SWT integration, to not pollute your
Part-Pojo with SWT dependency when you write JavaFX UIs the mentionned
bundle makes this possible.

A UI in FX looks like this:

class MyPart {
@PostConstruct
void init(BorderPane p) {
p.setCenter(new Button("Hello World"));
}
}

If you have such a POJO-Part you can embed it without any further coding
directly through the mentionned bundle in an e4 application where the
rest is written in SWT.

On animation. You need to differ between the part content and the
framework area.

You can do fancy animations inside your content (the stuff you've
written yourself in JavaFX see
http://tomsondev.bestsolution.at/2012/11/21/animating-the-javafx-piechart-a-bit/
for a small example)

As long as the framework area is built using SWT your possibilities for
animations are fairly small so fading out parts, moving them in an
animated fashion, ... is not really easy.

At the moment you switched all *your* code to JavaFX and are able to
move the the JavaFX-Rendering-Engine the possibilities to animate stuff
are only limited to your imagination (we currently only implemented
perspective animations but plan to provide e.g. stack animations,
min/max, DnD, ...).

The nice thing about our rendering engine is that it is really easy to
write your custom renderer for an element so you can replace stuff much
easier than you can in the SWT-Rendering-Framework.

Tom

Am 29.11.12 11:06, schrieb Alex Kipling:
> Sounds really great,
> but if I understood right - there is some kind of FXCanvas INSIDE A
> PART, which one can do animation on.
> How about the integration of JavaFX into the e4 platform itselfe?
> Will there be a possibility to do some animation with parts themselves?
> Fading them in/out? Moving them? Or will I use this, by subclasssing
> Part and introducing a FXCanvasPart, which will then be used by the
> platform on default?
>
Re: Is there some animation support in e4? [message #988310 is a reply to message #988302] Thu, 29 November 2012 11:11 Go to previous messageGo to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
Thank you very much Tom,
now I am working on a pure e4 Application, which uses the NatTable framework, which is SWT based.
So I will not be able to switch to JavaFx wimmediately, but I will start exprimenting with JavaFx to get a feeling about it's possibilities,
and next project will be JavaFX based!
Re: Is there some animation support in e4? [message #988315 is a reply to message #988310] Thu, 29 November 2012 11:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The NatTable-team is looking into JavaFX as a possible rendering
pipeline for the future - Dirk knows more about that ;-)

Tom

Am 29.11.12 12:11, schrieb Alex Kipling:
> Thank you very much Tom, now I am working on a pure e4 Application,
> which uses the NatTable framework, which is SWT based.
> So I will not be able to switch to JavaFx wimmediately, but I will start
> exprimenting with JavaFx to get a feeling about it's possibilities,
> and next project will be JavaFX based!
Re: Is there some animation support in e4? [message #988327 is a reply to message #988315] Thu, 29 November 2012 12:17 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Thomas Schindl wrote on Thu, 29 November 2012 12:21
The NatTable-team is looking into JavaFX as a possible rendering
pipeline for the future - Dirk knows more about that Wink

Tom


Yes this is planned for the future and currently in design phase. So unfortunately nothing to rely on yet. But stay tuned on this for the future. Smile
Previous Topic:Welcome page in e4
Next Topic:Mechanism to provide IAdapterFactory for classes, not instances?
Goto Forum:
  


Current Time: Tue Apr 23 16:34:05 GMT 2024

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

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

Back to the top