|
|
|
|
|
Re: Is there some animation support in e4? [message #988302 is a reply to message #988294] |
Thu, 29 November 2012 10:23 |
Thomas Schindl 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?
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04450 seconds