DroidDiagram Programmer's Guide
Command Members
Constructors Methods
 


Represents an action that can be undone or redone.

The following tables list the members exposed by the Command type.

 Public Constructors

  Name Description

Command

Initializes a new Command instance.

 Public Methods

  Name Description

addSubCmd

Adds a command object to a compound command.

execute

This method is called internally by DroidDiagram when performing the action.

getSubCommands

Gets a collection of all command objects contained within the composite one.

getTitle

Gets the title of this command.

redo

This method is called by the UndoManager when redoing actions.

setTitle

Sets the command title.

undo

This method is called by the UndoManager when undoing actions.

 Protected Methods

  Name Description

adopt

Merges adjacent commands in the history queue if they are related.

getContext

Gets the command's context.

isContainerOf

Determines whether a command has been initiated by this command and should be treated as a derivative.

 See Also

Command Class
com.mindfusion.diagramming Namespace