com.tensegrity.skeleton.commands.generic
Class UndoCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.EditGraphDocumentCommand
com.tensegrity.skeleton.commands.generic.UndoCommand
- All Implemented Interfaces:
- Command
- public class UndoCommand
- extends EditGraphDocumentCommand
Reverts the last performed Command and returns the application
to the state it had before the it was performed.
This class uses the GraphPanel.undo()
method to undo the last performed Command.
- Version:
- $Id: UndoCommand.java,v 1.9 2005/04/13 14:54:04 KevinCVS Exp $
- Author:
- MichaelKegel, Gilles Iachelini, Stepan RUtz
|
Method Summary |
boolean |
isEnabled()
(non-Javadoc)
This method returns true if the currently active
Document is an instance of GraphDocument. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndoCommand
public UndoCommand(ApplicationFrame applicationFrame,
java.lang.String command)
- Creates a new
UndoCommand.
- Parameters:
applicationFrame - Application context for this command.command - the ID of this command.
isEnabled
public boolean isEnabled()
- Description copied from class:
GraphDocumentCommand
- (non-Javadoc)
This method returns
true if the currently active
Document is an instance of GraphDocument.
- Specified by:
isEnabled in interface Command- Overrides:
isEnabled in class EditGraphDocumentCommand
perform
public void perform(java.lang.Object args)
- Description copied from class:
CommonBaseCommand
- Updates the StatusBar with this commands title string.
(non-Javadoc)
- Specified by:
perform in interface Command- Overrides:
perform in class CommonBaseCommand
- See Also:
Command.perform(java.lang.Object)
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.