org.grinvin.gred.undoable
Class AddElements
- UndoableChange
Undoable change for adding elements to a graph.
Internationalization: By default, the caption
key prefix for this command is
AddElements.
void | redo()- Reverts an undo by restoring the elements
in chronological order.
|
void | undo()- Undoes the effects of this change by removing the added elements
in reverse chronological order.
|
AddElements
public AddElements(UndoableGraph graph,
List elements) Create an undoable change for adding elements to a graph.
graph - Graph to which the elements were addedelements - Elements added to this graph, in chronological order.
AddElements
public AddElements(UndoableGraph graph,
Element element) Create an undoable change for adding a single element to a graph.