2D Objects Properties Stroke Width
This property is of the type double and it represents the width of the boundary line of the shape. You can set the stroke width using the method setStrokeWidth() as follows −
By default, the value of the stroke with of a shape is 1.0. Following is a diagram of a triangle with different values of stroke width.