((Movable)objs[i]).move(view.getRx(), view.getRy());
((Movable)objs[i]).move(posX, posY);
public void paste() {	ViewState view = ViewState.getInstance();	String currentGroupName = drawingSurface.getViewGroup().getAbsoluteName();	int size = Group.getClipboard().getSubObjectsV().size();	if (size==0) return;	Object objs[] = new Object[size];	Group.getClipboard().getSubObjectsV().copyInto(objs);	for(int i=0; i<size; i++) {		if (objs[i] instanceof Flexible)				view.setAsSelected((VisibleObject)objs[i]);	}	boolean isCopy = pasteNames.size()!=size;	ComposedAction composedAction = new ComposedAction();	Flexible flex; 	for(int i=0; i<size; i++) {		if (objs[i] instanceof Flexible) {			flex = (Flexible)objs[i];			if (flex.moveToGroup(currentGroupName))			{				if (isCopy)					composedAction.addAction(new CreateAction((VisibleObject)objs[i]));		// if true ?!!!				else {					//System.out.println("Cut/paste:"+pasteNames.get(i).toString()+"->"+currentGroupName);						composedAction.addAction(new MoveToGroupAction(flex, pasteNames.get(i).toString(), currentGroupName));				}								if (objs[i] instanceof Movable)					((Movable)objs[i]).move(view.getRx(), view.getRy());			}			else				view.deselectObject((VisibleObject)objs[i]);		}	}	UndoManager.getInstance().addAction(composedAction);	drawingSurface.getViewGroup().manageLinks(true);	drawingSurface.repaint();}