org.apache.batik.apps.svgbrowser

Interface UndoableCommand

public interface UndoableCommand

The undoable/redoable command.
Method Summary
voidexecute()
Executes this command.
StringgetName()
Gets the command name.
voidredo()
Performs redo for this command.
booleanshouldExecute()
Tests if the command can be executed.
voidundo()
Performs undo for this command.

Method Detail

execute

public void execute()
Executes this command.

getName

public String getName()
Gets the command name.

redo

public void redo()
Performs redo for this command.

shouldExecute

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

Returns: True if command should be executed

undo

public void undo()
Performs undo for this command.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.