On Tue, Mar 15, 2011 at 3:06 PM, Mark Murphy <[email protected]>wrote:

> This is typically implemented via the memento pattern, where you keep a
> list of the transactions that were applied to the image, where
> each transaction knows how to roll itself back. An undo pops the
> last transaction off the stack and has it roll back its work.
>

Also have a look at the Command Pattern, which I believe is often used in
undo / redo operations in GUIs.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to