elem.setAttribute( "id", paint.getId( ) );
if (highlight) elem.setAttribute( "id", paint.getId( )+"h" ); else elem.setAttribute( "id", paint.getId( ) );
	protected Element createGradientPaint( SVGGradientPaint paint )	{		Element elem = dom.createElement( "linearGradient" ); //$NON-NLS-1$		elem.setAttribute( "id", paint.getId( ) ); //$NON-NLS-1$		elem.setAttribute( "x1", Double.toString( paint.getPoint1( ).getX( ) ) ); //$NON-NLS-1$		elem.setAttribute( "y1", Double.toString( paint.getPoint1( ).getY( ) ) ); //$NON-NLS-1$		elem.setAttribute( "x2", Double.toString( paint.getPoint2( ).getX( ) ) ); //$NON-NLS-1$		elem.setAttribute( "y2", Double.toString( paint.getPoint2( ).getY( ) ) ); //$NON-NLS-1$		elem.setAttribute( "gradientUnits", "userSpaceOnUse" ); //$NON-NLS-1$ //$NON-NLS-2$		if ( paint.isCyclic( ) )			elem.setAttribute( "spreadMethod", "repeat" ); //$NON-NLS-1$ //$NON-NLS-2$		Element startColor = dom.createElement( "stop" ); //$NON-NLS-1$		startColor.setAttribute( "offset", "0%" ); //$NON-NLS-1$ //$NON-NLS-2$		startColor.setAttribute( "stop-color", serializeToString( paint.getColor1( ) ) ); //$NON-NLS-1$		elem.appendChild( startColor );		Element endColor = dom.createElement( "stop" ); //$NON-NLS-1$		endColor.setAttribute( "offset", "100%" ); //$NON-NLS-1$ //$NON-NLS-2$		endColor.setAttribute( "stop-color", serializeToString( paint.getColor2( ) ) ); //$NON-NLS-1$		elem.appendChild( endColor );		return elem;	}