code: private static Style.LineCap  parseStrokeLineCap(String val)
     {
        if ("butt".equals(val))
           return Style.LineCap.Butt;
        if ("round".equals(val))
           return Style.LineCap.Round;
        if ("square".equals(val))
           return Style.LineCap.Square;
        return null;
     }
docs: Parse stroke-linecap