2D Objects Properties Stroke Width


Advertisements


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 −

Path.setStrokeWidth(3.0) 

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.

Stroke Width
javafx_2d_shapes.htm

Advertisements