BasicStroke
BasicStroke is a fundamental class in the Java 2D API used for defining the shape and appearance of the outline of a shape. It is part of the java.awt package. When a shape is rendered with a stroke, the stroke is responsible for creating the actual visual representation of the shape's boundary.
A BasicStroke object is defined by several key properties: the width of the stroke, the join style,
Using BasicStroke is straightforward. An instance of BasicStroke is created with the desired parameters and then