-
Book Overview & Buying
-
Table Of Contents
JavaFX 1.2 Application Development Cookbook
By :
JavaFX offers a rich set of tools for creating basic and complex shapes. Sometimes, though, those drawing tools alone are not enough to express intricate and delicate shapes. In this recipe, we will show you how to use the notion of constructive geometry to create new shapes from the combination of existing shapes.
The approach covered in this recipe is known as Constructive Area Geometry (CAG). It uses Boolean operations to create new shapes from existing sets of shapes. Given shapes (or sets of shapes) represented by circles A and B, JavaFX supports the following CAG Boolean operations:
|
Operation |
Description |
Shape | |
|---|---|---|---|
|
A OR B (A union B) |
Returns the shaded area formed by both shapes A and B. |
| |
|
A NOT B (A subtract B) |
Returns the shaded area calculated by subtracting... |
Change the font size
Change margin width
Change background colour
