org.apache.batik.apps.svgbrowser

Class HistoryBrowser.DocumentCommandController

public static class HistoryBrowser.DocumentCommandController extends Object implements HistoryBrowser.CommandController

Lets the DOMViewerController wrap the commands.
Field Summary
protected DOMViewerControllercontroller
The DOMViewerController.
protected intstate
The current state of the command controller.
Constructor Summary
DocumentCommandController(DOMViewerController controller)
The constructor.
Method Summary
voidexecute(UndoableCommand command)
intgetState()
voidredo(UndoableCommand command)
voidundo(UndoableCommand command)

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)

getState

public int getState()

redo

public void redo(UndoableCommand command)

undo

public void undo(UndoableCommand command)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.