java.awt
public interface Stroke
drawLine
.
Strokes must be immutable, because the graphics object does not clone
them.BasicStroke
,
Graphics2D.setStroke(Stroke)
Modifier and Type | Method and Description |
---|---|
Shape |
createStrokedShape(Shape s)
Returns a shape which outlines the boundary of the given shape, in
effect converting the infinitely thin line into a new shape.
|
Shape createStrokedShape(Shape s)
s
- the shape to stroke