SVGRoot root = diagram.getRoot();
root.setAttribute( "width", AnimationElement.AT_XML, Double.toString( width ));
root.setAttribute( "height", AnimationElement.AT_XML, Double.toString( height ));
root.build();
diagram.setIgnoringClipHeuristic( true );
root.render( g2d );
}
}
catch ( Exception ex )
{
ex.printStackTrace();