JavaFX tile/flow pane animation - java

I'm just playing around with JavaFX 2 and developing a little application for my own amusement.
From what I've seen so far, I like it, and now I'd like to play about with some of the animation and effect properties.
The app I'm designing uses a lot of images to display info, and I'd like to design a animated GUI to display the images. The idea I've got is something like this:
http://www.youtube.com/watch?v=LK3B7cpZlGM
Could anyone provide any information on how to achieve something similar to this? I'm guessing the layout is the flowpane, but I've no idea about how the animation works. Is there some kind of sort algorithm in play?
Any advice or info would be greatly appreciated.
Thanks!!

There are several articles about animation in JavaFX:
Video: http://medianetwork.oracle.com/video/player/1193110454001
Tutorial: http://docs.oracle.com/javafx/2/animations/jfxpub-animations.htm
Ensemble sample has several examples in Animation section, and "Display Shelf" example which do a simple version of animation in video.

Related

Best way to display scalable graphics as icons in JavaFX?

I am making a desktop app using JavaFX as the GUI Framework. I wan't my app to scale at any DPI, so I want sharp icons whether the app is run on a 1024x768 or 4K screen. In HTML achieving this is pretty easy with SVG, however I have not found a way to display scalable graphics directly in JavaFX.
What is the best way to achieve this? The app will obviously contain many icons, so I need it to be light and fast. Frankly, I haven't found anything close to what I want searching Google.
Thanks for your help!
Here is a library that you might want to have a look at:
JavaFXSVG
In addition to mipa's answer, I have similarly solved my problem using svg2fxml, available here: https://tomsondev.bestsolution.at/2012/08/22/svg-to-fxml-converter-as-commandline-util/

Drag animation for the images

I have no experience what so ever on how to create a animation
I need to create such animation
any help is appreciated
Thanks and regards
Aashish
What you are looking for is plain Drag and Drop, it can be done with or without animation.
If you are developing for Android 3.0 or higher you are in luck, Google has made framework which makes Drag and Drop a Child's play, check this to know more.
Here are a few tutorials to get you started:
Tutorial 1
Tutorial 2
Tutorial 3
If you are developing for API level lesser than 3.0 then you are largely on your own to develop drag and drop functionality, well this might get you started.

How to show a boot animation preview?

Hi i'm working on a simple boot animation app for my first app just to learn the basics and all. I'm now done with the app and have everything i wanted basically, except previews of the boot animations. I tried creating a gallery and showing an animated gif however as you probably know android doesn't support animated gifs natively.
So my question is this what is the best way to show previews of my boot animations. I've searched but found nothing that seemed like a good way of previewing them. So how should i approach this problem? Any sample code and or links to tutorials, even just ideas or suggestions on what i should do to approach this would be a significant help
Thank you
I think AnimationDrawable can help you. You can read about it here.

How to load a simple 3d image with java3d

I want know how to load an image and move it on screen. I know that I can use textureloader() to load an image, but I don't know how to display it on the screen.
Can anyone provide some code or a link that can display a texture on the screen?
Mehdi, take a look at these articles as they will show you what you need to do.
Specifically: http://java.sun.com/developer/onlineTraining/java3d/
This will give you all the tutorials you will need for Java3d
For loading a basic texture and putting it in a scene, look at this tutorial:
http://java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch7.pdf
Specifically, go to section 7.2 and it should explain how to do all of that.
Good luck,

Fingertip drawing applications on Android?

I'm a new user to this interesting forum!
I want start developing an application for android and before starting i want learn about some android features...
The first android feature is how to correlate finger motion on the screen with java...
Are there any source code examples that show how to draw with your finger on an android screen?
Can you suggest a good place for me to download an example?
thanks
The ApiDemos that come with the SDK have an example called TouchPaint that does exactly this... it's a simple little finger drawing app. The source is actually very easy to read and it shows all of the basics.
Check out this tutorial on drawing with a canvas in Android. There are some source code examples there for you as well.
Also, the Android developer's guide and tutorials on the Google site are great. That's what I started with.

Categories