org.apache.batik.apps.svgbrowser
Interface UndoableCommand

All Known Implementing Classes:
AbstractUndoableCommand

public interface UndoableCommand

The undoable/redoable command.


Method Summary
 void execute()
          Executes this command.
 String getName()
          Gets the command name.
 void redo()
          Performs redo for this command.
 boolean shouldExecute()
          Tests if the command can be executed.
 void undo()
          Performs undo for this command.
 

Method Detail

execute

public void execute()
Executes this command.


undo

public void undo()
Performs undo for this command.


redo

public void redo()
Performs redo for this command.


getName

public String getName()
Gets the command name.


shouldExecute

public boolean shouldExecute()
Tests if the command can be executed.

Returns:
True if command should be executed


Copyright © 2009 Apache Software Foundation. All Rights Reserved.