Package edu.uci.ics.jung.visualization

Examples of edu.uci.ics.jung.visualization.GraphZoomScrollPane


    viewer.getRenderContext().setVertexFillPaintTransformer(
        new PickableVertexPaintTransformer<Vertex>(viewer
            .getPickedVertexState(), Color.red, Color.yellow));

    // create a form to hold the graph
    final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
    Container content = getContentPane();
    content.add(panel);

    final DefaultModalGraphMouse<Integer, Number> graphMouse = new DefaultModalGraphMouse<Integer, Number>();
    viewer.setGraphMouse(graphMouse);
View Full Code Here


    vv.setEdgeToolTipTransformer(new Transformer<DrawnConnection,String>() {
      public String transform(DrawnConnection edge) {
        return edge.getToolTip();
      }});
   
    final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv);
    this.setLayout(new BorderLayout());
        add(panel, BorderLayout.CENTER);
        final AbstractModalGraphMouse graphMouse = new DefaultModalGraphMouse();
        vv.setGraphMouse(graphMouse);
       
View Full Code Here

                vv.setSize(arg0.getComponent().getSize());
            }
        });

        // provide a scrollpane for the visualisation
        GraphZoomScrollPane vvPanel = new GraphZoomScrollPane(vv);

        //Setup the Splitpanes
        vizAndInfo = new JSplitPane(JSplitPane.VERTICAL_SPLIT, vvPanel, getInfoPanel());
        vizAndInfo.setResizeWeight(1.0);
        vizAndInfo.setOneTouchExpandable(true);
View Full Code Here

        vv.getRenderContext().setArrowDrawPaintTransformer(new ConstantTransformer(Color.black));
        JPanel jp = new JPanel();
        jp.setLayout(new BorderLayout());
       
        vv.setBackground(Color.white);
        GraphZoomScrollPane scrollPane = new GraphZoomScrollPane(vv);
        jp.add(scrollPane);
        gm = new DefaultModalGraphMouse<Integer, Number>();
        vv.setGraphMouse(gm);
        gm.add(new PopupGraphMousePlugin());
View Full Code Here

                    edgePaints.put(e, Color.black);
                    }*/
                }

            }
            final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv);
            pnlJUNGView.add(panel);

            final AbstractModalGraphMouse graphMouse = new DefaultModalGraphMouse<String, Number>();
            vv.setGraphMouse(graphMouse);

View Full Code Here

        vv.setVertexToolTipTransformer(new ToStringLabeller<Integer>());
       
        // create a frome to hold the graph
        final JFrame frame = new JFrame();
        Container content = frame.getContentPane();
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv);
        content.add(panel);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       
        final ModalGraphMouse gm = new DefaultModalGraphMouse<Integer,Number>();
        vv.setGraphMouse(gm);
View Full Code Here

        vv.setVertexToolTipTransformer(new ToStringLabeller<Integer>());
       
        // create a frome to hold the graph
        final JFrame frame = new JFrame();
        Container content = frame.getContentPane();
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv);
        content.add(panel);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       
        final ModalGraphMouse gm = new DefaultModalGraphMouse<Integer,Number>();
        vv.setGraphMouse(gm);
View Full Code Here

        // add a listener for ToolTips
        vv.setVertexToolTipTransformer(new ToStringLabeller<Number>());
       
        Container content = getContentPane();
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv);
        content.add(panel);
       
        final DefaultModalGraphMouse<Number,Number> graphMouse = new DefaultModalGraphMouse<Number,Number>();
        vv.setGraphMouse(graphMouse);
        vv.addKeyListener(graphMouse.getModeKeyListener());
View Full Code Here

        vv.getRenderContext().setArrowDrawPaintTransformer(new ConstantTransformer(Color.black));
        JPanel jp = new JPanel();
        jp.setLayout(new BorderLayout());
       
        vv.setBackground(Color.white);
        GraphZoomScrollPane scrollPane = new GraphZoomScrollPane(vv);
        jp.add(scrollPane);
        gm = new DefaultModalGraphMouse<Integer, Number>();
        vv.setGraphMouse(gm);
        gm.add(new PopupGraphMousePlugin());
View Full Code Here

        vv.setVertexToolTipTransformer(vv.getRenderContext().getVertexLabelTransformer());
       

        Container content = getContentPane();
        final GraphZoomScrollPane panel = new GraphZoomScrollPane(vv);
        content.add(panel);
        Factory<Number> vertexFactory = new VertexFactory();
        Factory<Number> edgeFactory = new EdgeFactory();
       
        final EditingModalGraphMouse<Number,Number> graphMouse =
View Full Code Here

TOP

Related Classes of edu.uci.ics.jung.visualization.GraphZoomScrollPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.