List<Long> newShapesIdList = new ArrayList<Long>();
int displayCounter = counter + shapeList.size();
for (int i = 0; i < shapeList.size(); i++) {
// they should be in the good order: from the oldest to the newest
Shape oldS = shapeList.get(i);
Shape newShape = Plugin.createShape(oldS.getName(), Shape
.generateId(), oldS.getAuthor(), oldS.getCoordinates(),
oldS.getColor(), counter, oldS.isFilled());
newShape.changeCoordinates(vector);
Creation c = new Creation(newShape, allShapes, time,
actionsAuthor, counter);
creationActionsList.add(c);
newShapesIdList.add(newShape.getShapeId());
counter++;
}
displayAction = new Display(newShapesIdList, allShapes, time,
actionsAuthor, displayCounter);