JavaFX 9 by Example by Carl Dea Gerrit Grunwald José Pereda Sean Phillips & Mark Heckler

JavaFX 9 by Example by Carl Dea Gerrit Grunwald José Pereda Sean Phillips & Mark Heckler

Author:Carl Dea, Gerrit Grunwald, José Pereda, Sean Phillips & Mark Heckler
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


Summary

In this chapter, you learned how to load images using the javafx.scene.image.Image class’ constructor, which accepts the standard URL specification format of files located locally, on the classpath, or on a remote web server. Then you got a chance to implement a Photo Viewer application with drag-and-drop capability to load and display images. You also learned about rotation and color adjustments you can make to an image view node.

Next, you looked at the fundamentals of JavaFX’s animation API to create key values, keyframes, and timelines. After learning about the fundamental concepts of animating any node using timelines, you looked at convenient animation classes called transitions. Using common transitions, you saw a simple point-and-click game example that demonstrated the following transitions: path, rotate, scale, translate, and fade. Finally, you ended the chapter by enhancing the Photo Viewer with a SequentialTransition animation to create a compound fade effect as the user views the next or previous image.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.