@@ -0,0 +1,770 @@
+package org.vaadin.addon.gwtgraphics.client.fill;%0A%0Apublic class Fill %7B%0A%0A%09// TODO: add fill-rule (see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule)%0A%09%0A%09private String style;%0A%09private double opacity = 1.0;%0A%09%0A%09public Fill() %7B%0A%09%09this.style = %22white%22;%0A%09%7D%0A%09%0A%09public Fill(String style) %7B%0A%09%09this.style = style;%0A%09%7D%0A%09%0A%09public void setStyle(String style) %7B%0A%09%09this.style = style;%0A%09%7D%0A%09%0A%09public String getStyle() %7B%0A%09%09return style;%0A%09%7D%0A%09%0A%09public void setOpacity(double opacity) %7B%0A%09%09this.opacity = Math.max(0, Math.min(opacity, 1));%0A%09%7D%0A%09%0A%09public double getOpacity() %7B%0A%09%09return opacity;%0A%09%7D%0A%09%0A%09public String toSVGString() %7B%0A%09%09String value = %22fill=%5C%22%22 + style + %22%5C%22%22;%0A%09%09if(opacity != 1.0) %7B%0A%09%09%09value += %22 fill-opacity=%5C%22%22 + opacity + %22%5C%22%22;%0A%09%09%7D%0A%09%09return value;%0A%09%7D%0A%09%0A%7D%0A

Add Fill API