org.grinvin.gred.undoable
Class RemoveElements
- UndoableChange
public class RemoveElements
Undoable change for removing elements from a graph.
Internationalization: By default, the caption
key prefix for this command is
RemoveElements
.
RemoveElements(Graph graph, List elements) - Create an undoable change object for removing elements from a graph.
|
RemoveElements(Graph graph, Element element) - Create an undoable object for removing a single element from a graph.
|
void | redo() - Redoes this change by removing the elements
in chronological order.
|
void | undo() - Undoes the effects of this change by restoring the elements
in reverse chronological order.
|
RemoveElements
public RemoveElements(Graph graph,
List elements)
Create an undoable change object for removing elements from a graph.
graph
- Graph from which the elements were removedelements
- Elements removed from this graph.
RemoveElements
public RemoveElements(Graph graph,
Element element)
Create an undoable object for removing a single element from a graph.