code: public void applyStyle(Element element, Style style) {
  		if (element != null && style != null) {
  			switch (namespace) {
  				case VML:
  					VmlStyleUtil.applyStyle(element, style);
  					break;
  				case SVG:
  					if (style instanceof ShapeStyle) {
  						applySvgStyle(element, (ShapeStyle) style);
  					} else if (style instanceof FontStyle) {
  						applySvgStyle(element, (FontStyle) style);
  					} else if (style instanceof PictureStyle) {
  						applySvgStyle(element, (PictureStyle) style);
  					}
  					break;
  				case HTML:
  					if (style instanceof ShapeStyle) {
  						applyHtmlStyle(element, (ShapeStyle) style);
  					} else if (style instanceof FontStyle) {
  						applyHtmlStyle(element, (FontStyle) style);
  					} else if (style instanceof PictureStyle) {
  						applyHtmlStyle(element, (PictureStyle) style);
  					}
  					break;
  			}
  		}
  	}
docs: Apply the style.
  
  @param element
  DOM element
  @param style
  style