code: private static String decode(ShapeStyle style) {
  		String css = "";
  		if (style.getFillColor() != null && !"".equals(style.getFillColor())) {
  			css += "fill:" + style.getFillColor() + ";";
  		}
  		css += "fill-opacity:" + style.getFillOpacity() + ";";
  		if (style.getStrokeColor() != null && !"".equals(style.getStrokeColor())) {
  			css += "stroke:" + style.getStrokeColor() + ";";
  		}
  		css += "stroke-opacity:" + style.getStrokeOpacity() + ";";
  		if (style.getStrokeWidth() >= 0) {
  			css += "stroke-width:" + style.getStrokeWidth() + ";";
  		}
  		return css;
  	}
docs: -------------------------------------------------------------------------