Package org.apache.batik.apps.svgbrowser
Class HistoryBrowser.CommandNamesInfo
java.lang.Object
org.apache.batik.apps.svgbrowser.HistoryBrowser.CommandNamesInfo
- Enclosing class:
HistoryBrowser
Contains the info on the command name being executed, undone or redone and
last undoable and redoable command names.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandNamesInfo
(String commandName, String lastUndoableCommandName, String lastRedoableCommandName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the command name.Gets the name of the last undoable command.Gets the name of the last redoable command.
-
Constructor Details
-
CommandNamesInfo
public CommandNamesInfo(String commandName, String lastUndoableCommandName, String lastRedoableCommandName) Constructor.- Parameters:
commandName
- The current command name being executed/undone/redonelastUndoableCommandName
- The last undoable command namelastRedoableCommandName
- The last redoable command name
-
-
Method Details
-
getLastRedoableCommandName
Gets the name of the last undoable command.- Returns:
- the lastUndoableCommandName
-
getLastUndoableCommandName
Gets the name of the last redoable command.- Returns:
- the lastRedoableCommandName
-
getCommandName
Gets the command name.- Returns:
- the command name
-