Examples of PluggableGraphMouse


Examples of edu.uci.ics.jung.visualization.control.PluggableGraphMouse

        // Initialise the animation switch
        showAnimation_ = false;

        // Create the custom mouse plugins to control the visualisation  with the mouse
        PluggableGraphMouse gm = new PluggableGraphMouse();
        gm.add(new TranslatingGraphMousePlugin(MouseEvent.BUTTON3_MASK));
        gm.add(new PickingGraphMousePlugin<Object, Object>());
        gm.add(new ScalingGraphMousePlugin(new CrossoverScalingControl(), 0, 0.9f, 1.1f));
        vv.setGraphMouse(gm);
        vv.addMouseListener(this);

        // translate the layout panel down and across so that it is not hard up
        // against the side of the splitPane box.
View Full Code Here

Examples of edu.uci.ics.jung.visualization.control.PluggableGraphMouse

        Transformer<MarkovVertex, Paint> transformer = new VertexTransformer<MarkovVertex, Paint>();
        graph_panel.getRenderContext().setVertexFillPaintTransformer(
                transformer);
        graph_panel.getRenderContext().setEdgeLabelTransformer(
                new ToStringLabeller<MarkovEdge>());
        PluggableGraphMouse gm = new PluggableGraphMouse();
        gm.add(new PopupMousePlugin<MarkovVertex, MarkovEdge>());
        gm.add(new TranslatingGraphMousePlugin(MouseEvent.BUTTON1_MASK));
        graph_panel.setGraphMouse(gm);
        Transformer<MarkovVertex, String> labelTransform = new VertexLabelTransformer<MarkovVertex, String>();
        graph_panel.getRenderContext()
                .setVertexLabelTransformer(labelTransform);
        return graph_panel;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.