protected void setFillColor( Element currentElement ) { Element element = currentElement; if (deferStrokColor != null){  element = deferStrokColor; } String style = element.getAttribute( "style" ); if ( style == null ) style = ""; if ( paint == null ) { if ( color == null ) return; String alpha = alphaToString( color ); if ( alpha != null ) style += "fill-opacity:" + alpha + ";"; element.setAttribute( "style", style + "fill:" + serializeToString( color ) + ";" ); } else { if ( paint instanceof SVGGradientPaint ) element.setAttribute( "style", style + "fill:url(#" + ( (SVGGradientPaint) paint ).getId( ) + ");" ); } if (styleClass != null) element.setAttribute("class", styleClass); if (id != null) element.setAttribute("id", id); if ( clip != null ) element.setAttribute( "clip-path", "url(#clip" + clip.hashCode( ) + ")" );
protected void setFillColor( Element currentElement){ setFillColor(currentElement, false);
	protected void setFillColor( Element currentElement )	{		Element element = currentElement;		if (deferStrokColor != null){			//Need to get the parent element.  			element = deferStrokColor;		}		String style = element.getAttribute( "style" ); //$NON-NLS-1$		if ( style == null )			style = ""; //$NON-NLS-1$		if ( paint == null )		{			if ( color == null )				return;			String alpha = alphaToString( color );			if ( alpha != null )				style += "fill-opacity:" + alpha + ";"; //$NON-NLS-1$ //$NON-NLS-2$			element.setAttribute( "style", style + "fill:" + serializeToString( color ) + ";" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$		}		else		{			if ( paint instanceof SVGGradientPaint )				element.setAttribute( "style", style + "fill:url(#" + ( (SVGGradientPaint) paint ).getId( ) + ");" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$		}		if (styleClass != null)			element.setAttribute("class", styleClass); //$NON-NLS-1$		if (id != null)			element.setAttribute("id", id); //$NON-NLS-1$		if ( clip != null )			element.setAttribute( "clip-path", "url(#clip" + clip.hashCode( ) + ")" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$			}