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 DOMViewerControllercontrollerThe DOMViewerController.protected intstateThe 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 voidexecute(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 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.CommandControllerWrapps the execute method.- Specified by:
executein interfaceHistoryBrowser.CommandController
-
undo
public void undo(UndoableCommand command)
Description copied from interface:HistoryBrowser.CommandControllerWrapps the undo method.- Specified by:
undoin interfaceHistoryBrowser.CommandController
-
redo
public void redo(UndoableCommand command)
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
-
-