private void applyStyle(@NonNull Style style) { setStrokeColor(style.getStrokeColor()); setStrokeWidth(style.getStrokeWidth()); setStrokeLineCap(style.getStrokeLineCap()); setStrokeLineJoin(style.getStrokeLineJoin()); setStrokeMiterLimit(style.getStrokeMiterLimit()); setStrokeDashArray(style.getStrokeDashArray()); setStrokeDashOffset(style.getStrokeDashOffset()); setFillColor(style.getFillColor()); setFillRule(style.getFillRule()); setFontProperties(style.getFontFamily(), style.getFontLineHeight(), style.getFontSize(), style.getFontStyle(), style.getFontVariant(), style.getFontWeight()); }