Class HistoryBrowser.CommandNamesInfo

java.lang.Object
org.apache.batik.apps.svgbrowser.HistoryBrowser.CommandNamesInfo
Enclosing class:
HistoryBrowser

public static class HistoryBrowser.CommandNamesInfo extends Object
Contains the info on the command name being executed, undone or redone and last undoable and redoable command names.
  • Field Details

    • lastUndoableCommandName

      private String lastUndoableCommandName
      The name of the last undoable command in the history.
    • lastRedoableCommandName

      private String lastRedoableCommandName
      The name of the last redoable command in the history.
    • commandName

      private String commandName
      The command name being executed, undone or redone.
  • Constructor Details

    • CommandNamesInfo

      public CommandNamesInfo(String commandName, String lastUndoableCommandName, String lastRedoableCommandName)
      Constructor.
      Parameters:
      commandName - The current command name being executed/undone/redone
      lastUndoableCommandName - The last undoable command name
      lastRedoableCommandName - The last redoable command name
  • Method Details

    • getLastRedoableCommandName

      public String getLastRedoableCommandName()
      Gets the name of the last undoable command.
      Returns:
      the lastUndoableCommandName
    • getLastUndoableCommandName

      public String getLastUndoableCommandName()
      Gets the name of the last redoable command.
      Returns:
      the lastRedoableCommandName
    • getCommandName

      public String getCommandName()
      Gets the command name.
      Returns:
      the command name