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
.
AddElements(Graph graph, List elements) - Create an undoable change for adding elements to a graph.
|
AddElements(Graph graph, Element element) - Create an undoable change for adding a single element to a graph.
|
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(Graph 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(Graph graph,
Element element)
Create an undoable change for adding a single element to a graph.