Examples of MoveVertexCommand


Examples of org.locationtech.udig.tools.edit.commands.MoveVertexCommand

         * @return
         */
        private UndoableMapCommand createMoveCommand( EditToolHandler handler ) {
            UndoableComposite command = new UndoableComposite();
            command.getCommands().add(
                    new MoveVertexCommand(lastPoint, this.selection, handler, start,
                            EditState.MODIFYING, isSnappingValid()));
            command.getFinalizerCommands().add(
                    new SetEditStateCommand(handler, EditState.MODIFYING));
            return command;
        }
View Full Code Here

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

        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
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.