code: private void applyHtmlStyle(Element element, ShapeStyle style) {
  		if (style.getFillColor() != null && !"".equals(style.getFillColor())) {
  			Dom.setStyleAttribute(element, "fillColor", style.getFillColor());
  		}
  		Dom.setStyleAttribute(element, "fillOpacity", Float.toString(style.getFillOpacity()));
  		if (style.getStrokeColor() != null && !"".equals(style.getStrokeColor())) {
  			Dom.setStyleAttribute(element, "stroke", style.getStrokeColor());
  		}
  		Dom.setStyleAttribute(element, "strokeOpacity", Float.toString(style.getStrokeOpacity()));
  		if (style.getStrokeWidth() >= 0) {
  			Dom.setStyleAttribute(element, "strokeWidth", Float.toString(style.getStrokeWidth()));
  		}
  	}
docs: -------------------------------------------------------------------------