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());
}