public void drawLoadGraph(Graph graph){
        if (graph==null) return ;
        controller.setModel(graph);
        this.diagramPanel = new DiagramPanel(graph);
        this.setPopMenu(new PopUpMenu(getDiagramPanel()));
        diagramScrollPane.setViewportView(this.getDiagramPanel());
        int x = 0;
        int y = 0;
        if (graph instanceof PetriNet) {
            x = ((PetriNet) graph).getListOfPlaces().get(0).getX();
            y = ((PetriNet) graph).getListOfPlaces().get(0).getY();
        } else if (graph instanceof PrecedenceGraph) {
            x = ((PrecedenceGraph) graph).getListOfNodes().get(0).getX();
            y = ((PrecedenceGraph) graph).getListOfNodes().get(0).getY();
        }
        if ((x - 50) < 0 || (y - 50 < 0)) {
            x = 0;
            y = 0;
        }

        diagramScrollPane.getViewport().setViewPosition(new java.awt.Point(x - 50, y - 50));

        sideMenu.setVisible(true);
        // hide side menu
        propertiesMenu.setVisible(false);

        /* Show zoom buttos */
//        btnZoomIn.setVisible(true);
//        btnZoomOut.setVisible(true);
//        btnZoomReset.setVisible(true);
        /* Show align buttons */
            alignLeftButton.setVisible(true);
            alignRightButton.setVisible(true);
            alignTopButton.setVisible(true);
            alignBottomButton.setVisible(true);
            zoomOutButton.setVisible(true);
            zoomInButton.setVisible(true);
            resetZoomButton.setVisible(true);
            zoomAllButton.setVisible(true);
            deleteBendButton.setVisible(true);
            bendButton.setVisible(true);

        ///
        getInfoAboutModel(graph);
    }