22 JavaFX Graphics and Multimedia

Objectives

In this chapter you’ll:

  • Use JavaFX graphics and multimedia capabilities to make your apps “come alive” with graphics, animations, audio and video.

  • Use external Cascading Style Sheets to customize the look of Nodes while maintaining their functionality.

  • Customize fonts attributes such as font family, size and style.

  • Display two-dimensional shape nodes of types Line, Rectangle, Circle, Ellipse, Arc, Path, Polyline and Polygon.

  • Customize the stroke and fill of shapes with solid colors, images and gradients.

  • Use Transforms to reposition and reorient nodes.

  • Display and control video playback with Media, MediaPlayer and MediaView.

  • Animate Node properties with Transition and Timeline animations. ...

Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.