The next Shape element is a Stroke—the shape's border. Stroke API governs various attributes of the lines: color, width, location, and dashes.
Customizing lines with Stroke API
Get Mastering JavaFX 10 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.