Package kaapo.projectmanager.command

This package is used to communicate from UI with ProjectManager and the Project and its contents.

See:
          Description

Interface Summary
Edit Interface for all the Edits that are not undoable.
 

Class Summary
AbstractEdit Abstract superclass for edits.
AbstractUndoableEdit Abstract class that all the Edits extend.
AddConnectionEdit An Edit that adds a Connection to a visible Diagram.
AddElementEdit This UndoableEdit adds a new Element into a Diagram.
AddToSelectionEdit This Edit adds a new DiagramComponentWrapper to a pre-existing Selection.
ChangeDiagramNameEdit This UndoableEdit is used to change either a visible Diagram's or another Diagram's name.
ChangeProjectNameEdit This UndoableEdit changes the name of the open Project.
ChangeVisibleDiagramEdit This UndoableEdit changes the currently visible Diagram in ProjectManager to another one.
ModifyDComponentAttributeEdit Changes the value of the specified attribute in the (first) selected diagram component when executed.
MoveConnectionPointEdit This class is an UndoableEdit that moves an point / segment of a Connection.
MoveDComponentEdit This UndoableEdit is designed to move a DiagramComponentWrapper around.
MoveDiagramDownEdit Moves diagram down in projects diagram hierarchy when executed.
MoveDiagramUpEdit Moves diagram up in projects diagram hierarchy when executed.
NewDiagramEdit This Edit adds a new Diagram to a Project.
RemoveDComponentEdit This class is an UndoableEdit that removes a DiagramComponentWrapper and possibly the DiagramComponent related to it from a Project.
RemoveDiagramEdit An UndoableEdit that removes the current visible Diagram in ProjectManager or a given Diagram from a Project.
RemoveFromSelectionEdit This Edit removes a DiagramComponentWrapper from a pre-existing Selection.
ResizeElementEdit This is an UndoableEdit that resizes an DiagramComponent.
SelectionEdit An Edit that selects DiagramComponentWrappers on the given {x,y}-point or in a rectangular area created from two {x,y}-points.
 

Exception Summary
EditFailedException Exception for situations where something inside an Edit has failed to execute and the Edit cannot be completed.
 

Package kaapo.projectmanager.command Description

This package is used to communicate from UI with ProjectManager and the Project and its contents. All the classes (minus abstract classes and EditFailedException) are used to modify the contents of ProjectManager and Project.

These Edits are divided into two different classes. The first one are part of the UndoableEdit type that are undoable. They are created in the UI and then executed in a ProjectManager. After execution they are stored in ProjectManager and are implemented so that they can be undone and redone. All of these edits modify the state of the project somehow.

The other Edits are the type of Edit that cannot be undone or stored. They only modify the metadata in the ProjectManager. IE. changing the visible diagram (the one that is being currently edited) or changing the currently activated (selected) components from a Diagram.