public XSvgPainter( Component host )
{
parentComp = host;
this.initialDim = initialDim;
this.isLoaded = false;
this.addGVTTreeBuilderListener(new GVTTreeBuilderAdapter() {
public void gvtBuildCompleted(GVTTreeBuilderEvent e) {
originalTransform = getRenderingTransform();
Dimension2D fileContentsDim = getSVGDocumentSize();
if ( initialDim != null ) {
double coef = initialDim.getWidth() / fileContentsDim.getWidth();