public SVGGraphics2D( Document dom ) { this.dom = dom; fontRenderContext = new FontRenderContext( new AffineTransform( ), true, false ); currentElement = dom.getDocumentElement( ); parentStack.push( currentElement ); currentParent = currentElement;  currentElement = dom.createElement( "g" ); definitions = dom.createElement( "defs" );  currentElement.setAttribute("id", "outerG"); currentElement.appendChild( definitions ); currentElement.setAttribute( "style", defaultStyles ); pushParent( currentElement );  transforms = new AffineTransform( ); initializeScriptStyles( );
public SVGGraphics2D( Document dom ){ this(dom, true);
	public SVGGraphics2D( Document dom )	{		this.dom = dom;		fontRenderContext = new FontRenderContext( new AffineTransform( ),				true,				false );		currentElement = dom.getDocumentElement( );		parentStack.push( currentElement );		currentParent = currentElement;		// add default styles		currentElement = dom.createElement( "g" ); //$NON-NLS-1$		definitions = dom.createElement( "defs" ); //$NON-NLS-1$		//give the outer group element an ID		currentElement.setAttribute("id", "outerG"); //$NON-NLS-1$		currentElement.appendChild( definitions );		currentElement.setAttribute( "style", defaultStyles ); //$NON-NLS-1$		pushParent( currentElement );		transforms = new AffineTransform( );		initializeScriptStyles( );	}