setUndoActivity(createUndoActivity(view));
getUndoActivity().setAffectedFigures(new SingleFigureEnumerator(owner()));
}
public void invokeStep(InputEvent inputEvent, int x, int y, int anchorX, int anchorY, DrawingView view) {
TextAreaFigure textOwner = (TextAreaFigure) owner();
UndoActivity activity = (UndoActivity) getUndoActivity();
int newSize = activity.getFont().getSize() + y - anchorY;
if (newSize < 1)
newSize = 1;
textOwner.setFont(new Font(activity.getFont().getName(), activity.getFont().getStyle(), newSize));
}