private void getStartingPointToDrawCenteredImage() {
        Logger.getLogger(ReadComponent.class.getName()).entering(ReadComponent.class.getName(), "getStartingPointToDrawCenteredImage");
        if (readInterfaceScrollPane != null) {
            readInterfaceScrollPane.validate();
            if (drawingImageHeigh > readInterfaceScrollPane.getHeight()) {
                startXDrawingPoint = (int) ((drawingImageWidth > readInterfaceScrollPane.getWidth() - readInterfaceScrollPane.getVerticalScrollBar().getWidth()) ? 0 : (readInterfaceScrollPane.getWidth() - drawingImageWidth - readInterfaceScrollPane.getVerticalScrollBar().getWidth()) / 2);
            } else {
                startXDrawingPoint = (int) ((drawingImageWidth > readInterfaceScrollPane.getWidth()) ? 0 : (readInterfaceScrollPane.getWidth() - drawingImageWidth) / 2);
            }
            if (drawingImageWidth > readInterfaceScrollPane.getWidth()) {
                startYDrawingPoint = (int) ((drawingImageHeigh > readInterfaceScrollPane.getHeight() - readInterfaceScrollPane.getHorizontalScrollBar().getHeight()) ? 0 : (readInterfaceScrollPane.getHeight() - drawingImageHeigh - readInterfaceScrollPane.getHorizontalScrollBar().getHeight()) / 2);
            } else {
                startYDrawingPoint = (int) ((drawingImageHeigh > readInterfaceScrollPane.getHeight()) ? 0 : (readInterfaceScrollPane.getHeight() - drawingImageHeigh) / 2);
            }
        } else {
            startXDrawingPoint = (int) ((drawingImageWidth > Toolkit.getDefaultToolkit().getScreenSize().getWidth()) ? 0 : (Toolkit.getDefaultToolkit().getScreenSize().getWidth() - drawingImageWidth) / 2);
            startYDrawingPoint = (int) ((drawingImageHeigh > Toolkit.getDefaultToolkit().getScreenSize().getHeight()) ? 0 : (Toolkit.getDefaultToolkit().getScreenSize().getHeight() - drawingImageHeigh) / 2);
        }
        Logger.getLogger(ReadComponent.class.getName()).exiting(ReadComponent.class.getName(), "getStartingPointToDrawCenteredImage");
    }