Sets the shape of line ends, e.g. setStrokeCap(new RoundCap()) from Java.
setStrokeCap(new RoundCap())