backgroundNode.setBounds(0,0,width/viewScale,height/viewScale);
backgroundNode.setBounds(0,0,10000,10000);
    public void updateConstraints()    {        Dimension dimension = getSize();        double width = dimension.getWidth();        double height = dimension.getHeight();                        double xRatio = width / footprint.getWidth();        double yRatio = height / footprint.getHeight();                if(Math.min(xRatio,yRatio) != minZoomLevel)        {            minZoomLevel = Math.min(xRatio,yRatio);            if(minZoomLevel < 0.05)            {                minZoomLevel = 0.05;            }            else if(minZoomLevel > 0.75)            {                minZoomLevel = 0.75;            }            for(Iterator iter = zoomParamListeners.iterator(); iter.hasNext();)            {                ZoomParamListener listener = (ZoomParamListener)iter.next();                listener.minZoomLevelChanged(minZoomLevel);            }        }                // for some reason, setting setViewScale(0) screws things up        // in a big way.        if(scaleToShow)        {            if((xRatio < 1 || yRatio < 1) &&               (xRatio != 0 && yRatio != 0))            {                double min = Math.min(xRatio,yRatio);                getCamera().setViewScale(min);            }            else            {                getCamera().setViewScale(1);            }        }        boundCameraPosition();                double viewScale = getCamera().getViewScale();        backgroundNode.setBounds(0,0,width/viewScale,height/viewScale);                //      update things        for(Iterator iter = regionSensitive.iterator(); iter.hasNext();)        {            RegionSensitive rs = (RegionSensitive)iter.next();            rs.setActiveRegion(footprint);        }                overlayCamera.cameraResized(new Rectangle2D.Double(0,0,width,height));                for(Iterator iter = zoomParamListeners.iterator(); iter.hasNext();)        {            ZoomParamListener listener = (ZoomParamListener)iter.next();            listener.zoomLevelChanged(viewScale);        }    }