- 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:
![](https://epubservercos.yuewen.com/0A344C/19470392808882006/epubprivate/OEBPS/Images/Chapter_140.jpg?sign=1739363115-KgF5dW5wlU8yuG142eCl8obkzgydAPfL-0-0dc1461940366e46761c417059445cd9)