Class HistoryBrowser.DocumentCommandController
java.lang.Object
org.apache.batik.apps.svgbrowser.HistoryBrowser.DocumentCommandController
- All Implemented Interfaces:
HistoryBrowser.CommandController
- Enclosing class:
HistoryBrowser
public static class HistoryBrowser.DocumentCommandController
extends Object
implements HistoryBrowser.CommandController
Lets the DOMViewerController wrap the commands.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DOMViewerControllerThe DOMViewerController.protected intThe current state of the command controller. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(UndoableCommand command) Wrapps the execute method.intgetState()Gets the state of the command controller.voidredo(UndoableCommand command) Wrapps the redo method.voidundo(UndoableCommand command) Wrapps the undo method.
-
Field Details
-
controller
The DOMViewerController. -
state
protected int stateThe current state of the command controller.
-
-
Constructor Details
-
DocumentCommandController
The constructor.- Parameters:
controller- The DOMViewerController
-
-
Method Details
-
execute
Description copied from interface:HistoryBrowser.CommandControllerWrapps the execute method.- Specified by:
executein interfaceHistoryBrowser.CommandController
-
undo
Description copied from interface:HistoryBrowser.CommandControllerWrapps the undo method.- Specified by:
undoin interfaceHistoryBrowser.CommandController
-
redo
Description copied from interface:HistoryBrowser.CommandControllerWrapps the redo method.- Specified by:
redoin interfaceHistoryBrowser.CommandController
-
getState
public int getState()Description copied from interface:HistoryBrowser.CommandControllerGets the state of the command controller.- Specified by:
getStatein interfaceHistoryBrowser.CommandController- Returns:
- HistoryBrowserState
-