- Mastering JavaFX 10
- Sergey Grinev
- 54字
- 2021-06-25 21:21:57
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.java
shape.setStrokeLineJoin(StrokeLineJoin.MITER);
shape.setStrokeMiterLimit(3);
The output is as follows:
