## Uses of Interface
com.dlsc.flexgantt.command.ICommand

- Packages that use ICommand
  Package | Description
  --- | ---
  com.dlsc.flexgantt.command | Framework for creating and executing commands.
  com.dlsc.flexgantt.command.dateline | Contains dateline-specific commands.
  com.dlsc.flexgantt.command.eventline | Contains eventline-specific commands.
  com.dlsc.flexgantt.command.layer | Contains layer-specific commands.
  com.dlsc.flexgantt.command.treetable | Contains tree-table-specific commands.
  com.dlsc.flexgantt.policy.eventline | Policies that will be used in the context of an eventline.
  com.dlsc.flexgantt.policy.layer | Policies that will be used in the context of layers.
  com.dlsc.flexgantt.policy.treetable | Policies that will be used in the context of a tree table
  com.dlsc.flexgantt.swing | Contains the Gantt chart components and various other user interface elements that can be used together with the Gantt chart.

- - ### Uses of ICommand in com.dlsc.flexgantt.command

    Classes in com.dlsc.flexgantt.command with type parameters of type ICommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractCompoundCommand<T extends ICommand>` A compound command can be used to group several commands together in order to execute them at the same time.

    Classes in com.dlsc.flexgantt.command that implement ICommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractCommand` An abstract superclass implementation to facilitate the creation of new commands.
    `class` | `AbstractCompoundCommand<T extends ICommand>` A compound command can be used to group several commands together in order to execute them at the same time.

    Methods in com.dlsc.flexgantt.command that return ICommand
    Modifier and Type | Method and Description
    --- | ---
    `ICommand` | CommandStackEvent.`getCommand()` Returns the command that was executed, undone or redone.
    `ICommand` | DefaultCommandStack.`getRedoableCommand()` Returns the command, which would be redone if the application called the redo operation on the stack.
    `ICommand` | ICommandStack.`getRedoableCommand()` Returns the command, which will be redone if the `redo` method gets called.
    `ICommand` | DefaultCommandStack.`getUndoableCommand()` Returns the command, which would be undone if the application called the undo operation on the stack.
    `ICommand` | ICommandStack.`getUndoableCommand()` Returns the command, which will be undone if the `undo` method gets called.

    Methods in com.dlsc.flexgantt.command that return types with arguments of type ICommand
    Modifier and Type | Method and Description
    --- | ---
    `List<ICommand>` | DefaultCommandStack.`getExecutedCommands()` Returns a copy of the list of executed commands.
    `List<ICommand>` | DefaultCommandStack.`getUndoneCommands()` Returns a copy of the list of undone commands.

    Methods in com.dlsc.flexgantt.command with parameters of type ICommand
    Modifier and Type | Method and Description
    --- | ---
    `void` | DefaultCommandStack.`execute(ICommand cmd, IProgressMonitor monitor)` Executes the given command.
    `void` | ICommandStack.`execute(ICommand cmd, IProgressMonitor monitor)` Executes the given command.
    `void` | AbstractCompoundCommand.`setCommands(T[] cmd)` Adds the given commands to the compound command and removed all previously added commands.

    Constructors in com.dlsc.flexgantt.command with parameters of type ICommand
    Constructor and Description
    `CommandStackEvent(ICommandStack stack, ICommand command, CommandStackEvent.ID id)` Creates a new command stack event.
    `CommandStackEvent(ICommandStack stack, ICommand command, CommandStackEvent.ID id, Exception ex)` Creates a new command stack event.

  - ### Uses of ICommand in com.dlsc.flexgantt.command.dateline

    Classes in com.dlsc.flexgantt.command.dateline that implement ICommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultChangeTimeZoneCommand` A command to change the time zone displayed by the timeline.

  - ### Uses of ICommand in com.dlsc.flexgantt.command.eventline

    Classes in com.dlsc.flexgantt.command.eventline that implement ICommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultChangeEventlineObjectTimeSpanCommand` A command that is used to change the time span of an eventline object.
    `class` | `DefaultCreateEventlineObjectCommand` A command that is used to create an eventline object and add it to an eventline model.
    `class` | `DefaultDeleteEventlineObjectCommand` A command that is used to delete an eventline object from the eventline model.
    `class` | `DefaultDeleteMultipleEventlineObjectsCommand` A command that is used to delete several eventline objects from the eventline model at the same time.

  - ### Uses of ICommand in com.dlsc.flexgantt.command.layer

    Classes in com.dlsc.flexgantt.command.layer that implement ICommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractDragAndDropCommand` A command that moves a given timeline object from one tree / hierarchy node to another.
    `class` | `DefaultAddLayerCommand` A command to add a layer to a model.
    `class` | `DefaultChangeCapacityCommand` A command that is used to change the capacity used value of a capacity object.
    `class` | `DefaultChangeMultipleTimelineObjectsTimeSpanCommand` A command that will change the time span of several timeline objects at the same time.
    `class` | `DefaultChangePercentageCommand` A command that will change the percentage complete value of a timeline object.
    `class` | `DefaultChangeSpreadsheetValueCommand` A command that will change the value of a spreadsheet cell.
    `class` | `DefaultChangeTimelineObjectTimeSpanCommand` A command that will change the time span of a timeline object.
    `class` | `DefaultCreateConstraintCommand` A command that will add a constraint to the Gantt chart model.
    `class` | `DefaultCreateMultipleTimelineObjectsCommand` A command that creates several new timeline objects at the same time.
    `class` | `DefaultCreateRelationshipCommand` A command that will add a relationship to the Gantt chart model.
    `class` | `DefaultCreateTimelineObjectCommand` A command that creates a new timeline object.
    `class` | `DefaultDeleteMultipleRelationshipsCommand` A comment to delete several relationships at the same time.
    `class` | `DefaultDeleteMultipleTimelineObjectsCommand` A command that deletes several timeline objects at the same time from a Gantt chart model.
    `class` | `DefaultDeleteRelationshipCommand` A commetn to delete a relationship from the Gantt chart model.
    `class` | `DefaultDeleteTimelineObjectCommand` A command that deletes a timeline object from a Gantt chart model.
    `class` | `DefaultDragAndDropCommand` A command that moves a given timeline object from one tree / hierarchy node to another.
    `class` | `DefaultMultiDragAndDropCommand` A command that moves a given timeline object from one tree / hierarchy node to another.
    `class` | `DefaultRemoveLayerCommand` A command to remove a layer from a model.

  - ### Uses of ICommand in com.dlsc.flexgantt.command.treetable

    Classes in com.dlsc.flexgantt.command.treetable that implement ICommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultChangeKeyCommand` A command that will change the key value of a tree table node.
    `class` | `DefaultChangeValueCommand` A command that will change a column value of a tree table node.
    `class` | `DefaultCreateNodeCommand` A command that creates a new child node for a given parent node and tree table model.
    `class` | `DefaultDeleteMultipleNodesCommand` A command that deletes several tree table nodes from the model at the same time.
    `class` | `DefaultDeleteNodeCommand` A command that deletes a tree table node from the model.
    `class` | `DefaultInsertNodeCommand` A command that inserts a new child node into the list of children nodes of a given parent node and tree table model.
    `class` | `DefaultNodeDragAndDropCommand` A command that performs the necessary changes after a drag and drop event within the tree table.
    `class` | `DefaultReassignNodesCommand` The default command used to reassign nodes to a new parent node.
    `class` | `DefaultRowResizeCommand` A command that changes the height of a tree table node.

  - ### Uses of ICommand in com.dlsc.flexgantt.policy.eventline

    Methods in com.dlsc.flexgantt.policy.eventline that return ICommand
    Modifier and Type | Method and Description
    --- | ---
    `ICommand` | DefaultEditEventlineObjectPolicy.`getChangeTimeSpanCommand(Object eventlineObject, IEventlineModel model, ITimeSpan span)`
    `ICommand` | IEditEventlineObjectPolicy.`getChangeTimeSpanCommand(Object eventlineObject, IEventlineModel model, ITimeSpan span)` Returns a command object that will perform the actual change of the eventline object's time span.
    `ICommand` | DefaultEditEventlineObjectPolicy.`getCreateCommand(IEventlineModel model, ITimeSpan span)`
    `ICommand` | IEditEventlineObjectPolicy.`getCreateCommand(IEventlineModel model, ITimeSpan span)` Returns a command object that will perform the actual creating of a new eventline object.
    `ICommand` | DefaultEditEventlineObjectPolicy.`getDeleteCommand(Collection<Object> eventlineObjects, IEventlineModel model)`
    `ICommand` | IEditEventlineObjectPolicy.`getDeleteCommand(Collection<Object> eventlineObjects, IEventlineModel model)` Returns a command object that will perform the actual deletion of the eventline objects.

  - ### Uses of ICommand in com.dlsc.flexgantt.policy.layer

    Methods in com.dlsc.flexgantt.policy.layer that return ICommand
    Modifier and Type | Method and Description
    --- | ---
    `ICommand` | DefaultEditLayerPolicy.`getAddLayerCommand(ILayer layer, IGanttChartModel model)`
    `ICommand` | IEditLayerPolicy.`getAddLayerCommand(ILayer layer, IGanttChartModel model)` Returns the command used to add a layer to a model.
    `ICommand` | DefaultEditCapacityObjectPolicy.`getChangeCapacityCommand(TimelineObjectPath path, IGanttChartModel model, double newPercentage)`
    `ICommand` | IEditCapacityObjectPolicy.`getChangeCapacityCommand(TimelineObjectPath path, IGanttChartModel model, double newCapacityUsed)` Returns a command object that will perform the actual change of the capacity used value.
    `ICommand` | DefaultEditActivityObjectPolicy.`getChangePercentageCommand(TimelineObjectPath path, IGanttChartModel model, double percentage)`
    `ICommand` | IEditActivityObjectPolicy.`getChangePercentageCommand(TimelineObjectPath path, IGanttChartModel model, double percentage)` Returns a command object that will perform the actual change of the percentage complete value.
    `ICommand` | ISpreadsheetEditPolicy.`getChangeSpreadsheetValueCommand(IGanttChartModel<?,?> model, Object node, ISpreadsheet spreadsheet, ITimeSpan span, Object value)` Returns a command object that can be used to change the value of a spreadsheet cell.
    `ICommand` | DefaultSpreadsheetEditPolicy.`getChangeSpreadsheetValueCommand(IGanttChartModel<?,?> model, Object node, ISpreadsheet spreadsheet, ITimeSpan span, Object value)`
    `ICommand` | DefaultEditTimelineObjectPolicy.`getChangeTimeSpanCommand(TimelineObjectPath path, IGanttChartModel model, ITimeSpan span, int dropAction)`
    `ICommand` | IEditTimelineObjectPolicy.`getChangeTimeSpanCommand(TimelineObjectPath path, IGanttChartModel model, ITimeSpan span, int dropAction)` Returns a command object that will perform the actual change of the timeline object's time span.
    `ICommand` | DefaultEditTimelineObjectPolicy.`getChangeTimeSpansCommand(IGanttChartModel model, List<TimelineObjectPath> timelineObjects, List<ITimeSpan> timeSpans, int dropAction)`
    `ICommand` | IEditTimelineObjectPolicy.`getChangeTimeSpansCommand(IGanttChartModel model, List<TimelineObjectPath> timelineObjects, List<ITimeSpan> timeSpans, int dropAction)` Returns a command object that will perform the actual change of the timeline objects' time spans.
    `ICommand` | DefaultEditTimelineObjectPolicy.`getCreateCommand(Object node, IGanttChartModel model, ILayer layer, ITimeSpan span, int lineIndex)`
    `ICommand` | IEditTimelineObjectPolicy.`getCreateCommand(Object node, IGanttChartModel model, ILayer layer, ITimeSpan span, int lineIndex)` Returns a command object that will perform the creation of a new timeline object.
    `ICommand` | IRelationshipPolicy.`getCreateRelationshipCommand(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, RelationshipType type, IGanttChartModel model)` Returns a command object that will perform the actual linking of the source and target timeline objects by making the appropriate changes in the model.
    `ICommand` | DefaultConstraintPolicy.`getCreateRelationshipCommand(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, RelationshipType type, IGanttChartModel model)`
    `ICommand` | DefaultRelationshipPolicy.`getCreateRelationshipCommand(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, RelationshipType type, IGanttChartModel model)`
    `ICommand` | DefaultEditTimelineObjectPolicy.`getDeleteCommand(IGanttChartModel model, Collection<TimelineObjectPath> timelineObjects)`
    `ICommand` | IEditTimelineObjectPolicy.`getDeleteCommand(IGanttChartModel model, Collection<TimelineObjectPath> timelineObjects)` Returns a command object that will perform the deletion of the given timeline objects.
    `ICommand` | IRelationshipPolicy.`getDeleteRelationshipsCommand(Collection<IRelationship> relationships, IGanttChartModel model)` Returns a command object that will perform the actual deletion of several relationship objects from the given model.
    `ICommand` | DefaultRelationshipPolicy.`getDeleteRelationshipsCommand(Collection<IRelationship> relationships, IGanttChartModel model)`
    `ICommand` | DefaultDragAndDropPolicy.`getDragAndDropCommand(TimelineObjectPath path, IGanttChartModel model, Object newNode, IGanttChartModel newModel, long newStartTime, Object[] timelineObjects, ILayer layer, int dropAction)`
    `ICommand` | IDragAndDropPolicy.`getDragAndDropCommand(TimelineObjectPath path, IGanttChartModel model, Object newNode, IGanttChartModel newModel, long newStartTime, Object[] timelineObjects, ILayer layer, int dropAction)` Returns a command object that will be used to make the necessary modifications to the models when the user dragged several timeline objects from one row to another at the same time.
    `ICommand` | DefaultEditLayerPolicy.`getRemoveLayerCommand(ILayer layer, IGanttChartModel model)`
    `ICommand` | IEditLayerPolicy.`getRemoveLayerCommand(ILayer layer, IGanttChartModel model)` Returns the command used to remove a layer from a model.

  - ### Uses of ICommand in com.dlsc.flexgantt.policy.treetable

    Methods in com.dlsc.flexgantt.policy.treetable that return ICommand
    Modifier and Type | Method and Description
    --- | ---
    `ICommand` | INodeEditPolicy.`getChangeKeyCommand(Object node, ITreeTableModel model, Object key)` Returns a command object that will perform the modification of the key value of the given node.
    `ICommand` | DefaultNodeEditPolicy.`getChangeKeyCommand(Object node, ITreeTableModel model, Object key)`
    `ICommand` | INodeEditPolicy.`getChangeValueCommand(Object node, ITreeTableModel model, Object value, int index)` Returns a command object that will perform the modification of the key value of the given node.
    `ICommand` | DefaultNodeEditPolicy.`getChangeValueCommand(Object node, ITreeTableModel model, Object value, int index)`
    `ICommand` | INodeEditPolicy.`getCreateNodeCommand(Object parentNode, ITreeTableModel model, Object key, Object[] values)` Returns a command object that will perform the creation of a new tree / hierarchy node in the given tree table model.
    `ICommand` | DefaultNodeEditPolicy.`getCreateNodeCommand(Object node, ITreeTableModel model, Object key, Object[] values)`
    `ICommand` | INodeEditPolicy.`getDeleteNodesCommand(List<Object> node, ITreeTableModel model)` Returns a command object that will perform the actual deletion of the given nodes.
    `ICommand` | DefaultNodeEditPolicy.`getDeleteNodesCommand(List<Object> nodes, ITreeTableModel model)`
    `ICommand` | DefaultNodeDragAndDropPolicy.`getDragAndDropCommand(Object droppedNode, Object oldParent, ITreeTableModel oldModel, int oldChildIndex, Object newParent, ITreeTableModel newModel, int newChildIndex, int dropAction)`
    `ICommand` | INodeDragAndDropPolicy.`getDragAndDropCommand(Object droppedNode, Object oldParent, ITreeTableModel oldModel, int oldChildIndex, Object newParent, ITreeTableModel newModel, int newChildIndex, int dropAction)` Returns the command object that will perform the actual changes required in order to detach the node from its current parent and attach it to its new parent.
    `ICommand` | INodeEditPolicy.`getInsertNodeCommand(Object parentNode, int childIndex, ITreeTableModel model)` Returns a command object that will perform the insertion of a new tree / hierarchy node in the given tree table model.
    `ICommand` | DefaultNodeEditPolicy.`getInsertNodeCommand(Object node, int childIndex, ITreeTableModel model)`
    `ICommand` | INodeEditPolicy.`getReassignmentCommand(Object[] nodes, Object oldParent, int[] oldChildIndices, Object newParent, int[] newChildIndices, ITreeTableModel model)` Returns the command that will be used to perform the reassingment of a set of given nodes from one parent node to a new one.
    `ICommand` | DefaultNodeEditPolicy.`getReassignmentCommand(Object[] nodes, Object oldParent, int[] oldChildIndices, Object newParent, int[] newChildIndices, ITreeTableModel model)`
    `ICommand` | DefaultRowPolicy.`getRowResizeCommand(Object node, ITreeTableModel model, int rowHeight)`
    `ICommand` | IRowPolicy.`getRowResizeCommand(Object node, ITreeTableModel model, int rowHeight)` Returns a command object that will peform the actual resizing of the row / node.

  - ### Uses of ICommand in com.dlsc.flexgantt.swing

    Methods in com.dlsc.flexgantt.swing with parameters of type ICommand
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractGanttChart.`commandExecute(ICommand cmd)` Executes the given command via the command stack.
    `boolean` | ICommandInterceptor.`intercept(T gc, ICommand cmd)` Callback method that gets invoked after a command gets send to the Gantt chart for execution but before is gets passed to the command stack.

    Method parameters in com.dlsc.flexgantt.swing with type arguments of type ICommand
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractGanttChart.`setCommandInterceptor(Class<? extends ICommand> cl, ICommandInterceptor interceptor)` Registers a command interceptor implementation for the given command type.

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.