Examples of LayoutScalingControl


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

        DefaultModalGraphMouse gm1 = new DefaultModalGraphMouse() {
            protected void loadPlugins() {
                pickingPlugin = new PickingGraphMousePlugin();
                animatedPickingPlugin = new AnimatedPickingGraphMousePlugin();
                translatingPlugin = new TranslatingGraphMousePlugin(InputEvent.BUTTON1_MASK);
                scalingPlugin = new ScalingGraphMousePlugin(new LayoutScalingControl(), 0);
                rotatingPlugin = new RotatingGraphMousePlugin();
                shearingPlugin = new ShearingGraphMousePlugin();

                add(scalingPlugin);
                setMode(Mode.TRANSFORMING);
View Full Code Here

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

    anchorStyle = anchor;
    DerivationTreeTransformer dtt = new DerivationTreeTransformer(g, d, false);
    StaticLayout<Node,DerivationTreeEdge> derivationLayout = new StaticLayout<Node,DerivationTreeEdge>(g, dtt);
//    derivationLayout.setSize(dtt.getSize());
    setGraphLayout(derivationLayout);
    scaleToLayout(new LayoutScalingControl());
//    g.addCorrespondences();
    setPreferredSize(new Dimension(DEFAULT_HEIGHT, DEFAULT_WIDTH));
    getRenderContext().setVertexLabelTransformer(new ToStringLabeller<Node>());

    DefaultModalGraphMouse<Node,DerivationTreeEdge> graphMouse = new DefaultModalGraphMouse<Node,DerivationTreeEdge>();
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.