O'Reilly logo

JavaFX™ Developer’s Guide by Kim Topley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16. Shapes, Text, and Images

The last two chapters introduced the concept of a node-based scene graph and demonstrated some of the ways in which you can control the appearance of a node and detect user interaction with nodes. This chapter opens by looking at a specific set of node subclasses called shapes. We have already made use of two of the shape classes in our examples so far—Circle and Rectangle. Here, we take a look at both of these classes, and the other shapes that the JavaFX runtime supports, in much more detail.

The second part of this chapter is concerned with two specific node subclasses that are worthy of greater attention. The first is the Text class, which is used to render text. Along with this discussion, this chapter introduces ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required