org.arakhne.neteditor.figlayout
public class FigureLayoutUndoableEdit extends AbstractUndoable
| Constructor and Description |
|---|
FigureLayoutUndoableEdit(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Undoable edit)
Add the undoable edits from the given edit.
|
void |
addControlPointRemoval(EdgeFigure<?> figure,
int position)
Add a removal of a control point.
|
void |
addLocationChange(Figure figure,
float x,
float y)
Add a change into the undo edit.
|
protected void |
doEdit() |
String |
getPresentationName() |
boolean |
isEmpty()
Replies if this edit is empty, ie it contains no change.
|
protected void |
undoEdit() |
die, redo, undopublic FigureLayoutUndoableEdit(String name)
name - is the presentation name of the edit.public String getPresentationName()
public void add(Undoable edit)
edit - public void addLocationChange(Figure figure, float x, float y)
figure - is the figure to move.x - is the new position of the figure.y - is the new position of the figure.public void addControlPointRemoval(EdgeFigure<?> figure, int position)
figure - is the figure from witch the control point may be removed.position - is the position of the control point to remove.public boolean isEmpty()
true if there is no change inside;
otherwise false.protected void doEdit()
doEdit in class AbstractUndoableprotected void undoEdit()
undoEdit in class AbstractUndoableCopyright © 2001-2013 NetEditor Developers. 
NetEditor API Documentation by NetEditor Developers is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at www.arakhne.org/neteditor