Package org.apache.batik.apps.svgbrowser
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 DOMViewerController
The DOMViewerController.protected int
The current state of the command controller. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(UndoableCommand command) Wrapps the execute method.int
getState()
Gets the state of the command controller.void
redo
(UndoableCommand command) Wrapps the redo method.void
undo
(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.CommandController
Wrapps the execute method.- Specified by:
execute
in interfaceHistoryBrowser.CommandController
-
undo
Description copied from interface:HistoryBrowser.CommandController
Wrapps the undo method.- Specified by:
undo
in interfaceHistoryBrowser.CommandController
-
redo
Description copied from interface:HistoryBrowser.CommandController
Wrapps the redo method.- Specified by:
redo
in interfaceHistoryBrowser.CommandController
-
getState
public int getState()Description copied from interface:HistoryBrowser.CommandController
Gets the state of the command controller.- Specified by:
getState
in interfaceHistoryBrowser.CommandController
- Returns:
- HistoryBrowserState
-