toolBar = new ToolBar(reg, manager, magFactor);
toolBar = new ToolBar(reg, manager, magFactor, w, h);
    private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor)    {        Registry reg = control.getRegistry();        manager = new ImageInspectorManager(this, control, magFactor);        BufferedImage img = control.getBufferedImage();        manager.setImageDimension(img.getWidth(), img.getHeight());        manager.setCanvas(canvas);        menuBar = new MenuBar(manager, magFactor);        toolBar = new ToolBar(reg, manager, magFactor);    }