Element element = currentElement; if (deferStrokColor != null){  element = deferStrokColor; }  String style = element.getAttribute( "style" ); if ( style == null ) style = ""; if ( color != null ) { style += "stroke:" + serializeToString( color ) + ";"; } if ( ( stroke != null ) && ( stroke instanceof BasicStroke ) ) { BasicStroke bs = (BasicStroke) stroke; if ( bs.getLineWidth( ) > 0 ) style += "stroke-width:" + bs.getLineWidth( ) + ";"; if ( bs.getDashArray( ) != null ) { String dashArrayStr = ""; for ( int x = 0; x < bs.getDashArray( ).length; x++ ) { dashArrayStr += " " + bs.getDashArray( )[x]; } if ( !( dashArrayStr.equals( "" ) ) ) style += "stroke-dasharray:" + dashArrayStr + ";"; } style += "stroke-miterlimit:" + bs.getMiterLimit( ) + ";"; switch ( bs.getLineJoin( ) ) { case BasicStroke.JOIN_BEVEL : style += "stroke-linejoin:bevel;"; break; case BasicStroke.JOIN_ROUND : style += "stroke-linejoin:round;"; break; } switch ( bs.getEndCap( ) ) { case BasicStroke.CAP_ROUND : style += "stroke-linecap:round;"; break; case BasicStroke.CAP_SQUARE : style += "stroke-linecap:square;"; break; }  } element.setAttribute( "style", style ); 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( ) + ")" );
setStrokeStyle(currentElement, false);
	protected void setStrokeStyle( 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 ( color != null )		{			style += "stroke:" + serializeToString( color ) + ";"; //$NON-NLS-1$ //$NON-NLS-2$		}		if ( ( stroke != null ) && ( stroke instanceof BasicStroke ) )		{			BasicStroke bs = (BasicStroke) stroke;			if ( bs.getLineWidth( ) > 0 )				style += "stroke-width:" + bs.getLineWidth( ) + ";"; //$NON-NLS-1$ //$NON-NLS-2$			if ( bs.getDashArray( ) != null )			{				String dashArrayStr = ""; //$NON-NLS-1$				for ( int x = 0; x < bs.getDashArray( ).length; x++ )				{					dashArrayStr += " " + bs.getDashArray( )[x]; //$NON-NLS-1$				}				if ( !( dashArrayStr.equals( "" ) ) ) //$NON-NLS-1$					style += "stroke-dasharray:" + dashArrayStr + ";"; //$NON-NLS-1$ //$NON-NLS-2$			}			style += "stroke-miterlimit:" + bs.getMiterLimit( ) + ";"; //$NON-NLS-1$ //$NON-NLS-2$			switch ( bs.getLineJoin( ) )			{				case BasicStroke.JOIN_BEVEL :					style += "stroke-linejoin:bevel;"; //$NON-NLS-1$					break;				case BasicStroke.JOIN_ROUND :					style += "stroke-linejoin:round;"; //$NON-NLS-1$					break;			}			switch ( bs.getEndCap( ) )			{				case BasicStroke.CAP_ROUND :					style += "stroke-linecap:round;"; //$NON-NLS-1$					break;				case BasicStroke.CAP_SQUARE :					style += "stroke-linecap:square;"; //$NON-NLS-1$					break;			}		}		element.setAttribute( "style", style ); //$NON-NLS-1$		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$			}