Java GraphZoomScrollPane和VisualizationViewer相关性

Java GraphZoomScrollPane和VisualizationViewer相关性,java,swing,visualization,jung,Java,Swing,Visualization,Jung,我的图形ZoomScrollPane工作异常,在一些放大和缩小操作后,滚动条突然消失。它们是用bak包装的,但尺寸不合适,而且没有Y?有谁能在这方面帮助我,让我知道缩放所依赖的参数是什么?我正在使用PopupGraphMousePlugin,ModalGraphMouse,DefaultSettableVertexLocationFunction,EdgeWightStrokeFunction。 非常感谢任何类型的文档或帮助 private JPanel _getCenterPanel() {

我的
图形ZoomScrollPane
工作异常,在一些放大和缩小操作后,滚动条突然消失。它们是用bak包装的,但尺寸不合适,而且没有Y?有谁能在这方面帮助我,让我知道缩放所依赖的参数是什么?我正在使用
PopupGraphMousePlugin
ModalGraphMouse
DefaultSettableVertexLocationFunction
EdgeWightStrokeFunction
。 非常感谢任何类型的文档或帮助

private JPanel _getCenterPanel() {
        JPanel jpMainPanel = new com.panduit.acmnms.gui.framework.ACMPanel(new GridLayout(1,0));
        initVisualViewer();
        pane = new GraphZoomScrollPane(vv);//Defined in the begng.
        jpMainPanel.add(pane);
        return jpMainPanel;
    }

private void initVisualViewer() {
        clusteringLayout = new SubLayoutDecorator(new SpringLayout(graph));
        Dimension preferredSize = new Dimension(width, height);
        visualizationModel = new DefaultVisualizationModel(clusteringLayout, preferredSize);
        vv =  new VisualizationViewer(visualizationModel, pr, preferredSize);
        ewcs = new EdgeWeightStrokeFunction(edge_weight);
        vertexLocations = new DefaultSettableVertexLocationFunction(); 
        vv.setDoubleBuffered(false);
        vv.setGraphMouse(graphMouse);
        graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
        popupGraphMousePlugin = new PopupGraphMousePlugin(vertexLocations);
        graphMouse.add(popupGraphMousePlugin);
        System.out.println("  graphMouse.getModeMenu()  "+graphMouse.getModeMenu());
        graphMouse.setZoomAtMouse(true);
        vv.setGraphMouse(graphMouse);
        vertexImagerAndShapeFunction = new VertexIconAndShapeFunction(new EllipseVertexShapeFunction());
        vertexImagerAndShapeFunction.setIconMap(iconMap);
        pr.setVertexIconFunction(vertexImagerAndShapeFunction);
        pr.setVertexShapeFunction(vertexImagerAndShapeFunction);
        vertexStringerImpl = new VertexStringerImpl(labelMap);
        pr.setVertexStringer(vertexStringerImpl);
        vertexToolTipFunctionAdapter = new VertexToolTipFunctionAdapter(tooTipMap);
        vv.setToolTipFunction(vertexToolTipFunctionAdapter);
        vv.setPickSupport(new ShapePickSupport());
            pr.setEdgeShapeFunction(new EdgeShape.QuadCurve());
        ewcs.setWeighted(true);
        vv.setBackground(Color.white);
    }
上面是负责缩放部分代码的代码部分。
请让我知道。哪里出了问题。

请提供一份说明您描述的问题的报告。以下是您询问的SSCCE。。请查看它并尽快让我知道。嗨,极客们,JUNG it本身似乎有问题。你可以访问链接查看问题: