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