Package ru.spbu.math.ontologycomparison.zhukova.visualisation.ui.commands

Examples of ru.spbu.math.ontologycomparison.zhukova.visualisation.ui.commands.Composite


        MovingTool.from = mouseLocation;
        graphPane.repaint();
    }

    public void mouseReleased(MouseEvent e) {
        Composite c = new Composite();
        Point mouseLocation = e.getPoint();
        int dx = mouseLocation.x - MovingTool.veryFrom.x;
        int dy = mouseLocation.y - MovingTool.veryFrom.y;
        IGraphPane graphPane = Tool.getGraphPane();
        Set<IVertex> vertices = graphPane.getSelectedVertices();
        for (IVertex v : vertices) {
            c.addCommand(new MoveVertexCommand(graphPane.getGraphModel(), v, dx, dy));
        }
        graphPane.setTool(SelectingTool.getInstance());
    }
View Full Code Here

TOP

Related Classes of ru.spbu.math.ontologycomparison.zhukova.visualisation.ui.commands.Composite

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.