protected void translate(int x, int y){
CompoundEdit ce = new CompoundEdit();
for(int i=0;i<ShapesContainer.this.size();i++){
AbstractShape s=(AbstractShape)elementAt(i);
s.translate(x,y);
ce.addEdit(new TranslateEdit(x, y, s));
}
ce.end();
fireUndoableEditUpdate(new UndoableEditEvent(this, ce));
}