iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null);  menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight);
    private void initOverlayShapes()    {        int width = getImage().getWidth(null);        int height = getImage().getHeight(null);        PaintShapeGenerator generator = PaintShapeGenerator.getInstance();                if(multipleModeOn)        {            Shape prevShape = generator.getPrevImageShape();            Shape nextShape = generator.getNextImageShape();                        AffineTransform prevXForm =                AffineTransform.getTranslateInstance(5,height-prevShape.getBounds2D().getHeight()-5);                        AffineTransform nextXForm =                AffineTransform.getTranslateInstance(width-nextShape.getBounds2D().getWidth()-5,                                                     height-nextShape.getBounds2D().getHeight()-5);                        this.prevImageShape = prevXForm.createTransformedShape(prevShape);            this.nextImageShape = nextXForm.createTransformedShape(nextShape);        }                BrowserEnvironment env = BrowserEnvironment.getInstance();        IconManager manager = env.getIconManager();        openIconImage = manager.getLargeImage(IconManager.ZOOM_BAR);        closeIconImage = manager.getLargeImage(IconManager.CLOSE_IMAGE);        annotateIconImage = manager.getLargeImage(IconManager.ANNOTATE);                int iconWidth = openIconImage.getWidth(null);        int iconHeight = openIconImage.getHeight(null);                openIconShape = new Rectangle2D.Double(width-iconWidth-8,64,                                               iconWidth,iconHeight);                iconWidth = closeIconImage.getWidth(null);        iconHeight = closeIconImage.getHeight(null);                closeIconShape = new Rectangle2D.Double(width-iconWidth-8,8,                                                iconWidth,iconHeight);                                                        iconWidth = annotateIconImage.getWidth(null);        iconHeight = annotateIconImage.getHeight(null);                                                        annotateIconShape = new Rectangle2D.Double(width-iconWidth-8,36,                                                   iconWidth,iconHeight);                                                                 }