Connecting line designs using Line Join

Line Join describes how lines will look at intersections or angles. There are several options here:

  • StrokeLineJoin.MITER: A sharp angle made from outer parts of the connecting lines
  • StrokeLineJoin.BEVEL: A cut out angle
  • StrokeLineJoin.ROUND: A rounded-up angle
// chapter2.strokes/LineJoins.javashape.setStrokeLineJoin(StrokeLineJoin.MITER);shape.setStrokeMiterLimit(3);

The output is as follows:

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.