definitions.appendChild( createGradientPaint( gp ) );
definitions.appendChild( createGradientPaint( gp, false )); definitions.appendChild( createGradientPaint( gp, true ));
	public void setPaint( Paint paint )	{		if ( paint instanceof GradientPaint )		{			SVGGradientPaint gp = new SVGGradientPaint( (GradientPaint) paint );			int index = paints.indexOf( gp );			if ( index == -1 )			{				paints.add( gp );				definitions.appendChild( createGradientPaint( gp ) );			}			else			{				gp = (SVGGradientPaint) paints.get( index );			}			this.paint = gp;		}		else			this.paint = paint;	}