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 java.lang.Object implements HistoryBrowser.CommandController
Lets the DOMViewerController wrap the commands.
-
-
Field Summary
Fields Modifier and Type Field Description protected DOMViewerController
controller
The DOMViewerController.protected int
state
The current state of the command controller.
-
Constructor Summary
Constructors Constructor Description DocumentCommandController(DOMViewerController controller)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
controller
protected DOMViewerController controller
The DOMViewerController.
-
state
protected int state
The current state of the command controller.
-
-
Constructor Detail
-
DocumentCommandController
public DocumentCommandController(DOMViewerController controller)
The constructor.- Parameters:
controller
- The DOMViewerController
-
-
Method Detail
-
execute
public void execute(UndoableCommand command)
Description copied from interface:HistoryBrowser.CommandController
Wrapps the execute method.- Specified by:
execute
in interfaceHistoryBrowser.CommandController
-
undo
public void undo(UndoableCommand command)
Description copied from interface:HistoryBrowser.CommandController
Wrapps the undo method.- Specified by:
undo
in interfaceHistoryBrowser.CommandController
-
redo
public void redo(UndoableCommand command)
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
-
-