public class UndoLayoutAction extends java.lang.Object implements UndoAction
Constructor and Description |
---|
UndoLayoutAction(NamedObj source)
Create an undo action for automatic layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnection(NamedObj container,
LayoutHint layoutHint)
Add a connection.
|
void |
addCurve(ApplyLayoutRequest.CurveEntry entry)
Add a curve to the undo action.
|
void |
addLocation(ApplyLayoutRequest.LocationEntry entry)
Add a location to the undo action.
|
void |
execute()
Execute the undo or redo action.
|
void |
removeConnection(LayoutHint layoutHint)
Mark the given connection routing hint for removal.
|
public UndoLayoutAction(NamedObj source)
source
- The source object, which is typically the parent composite entity.public void addConnection(NamedObj container, LayoutHint layoutHint)
container
- The container in which to add the connectionlayoutHint
- to be added.public void addCurve(ApplyLayoutRequest.CurveEntry entry)
entry
- A curve entry with stored exit valuepublic void addLocation(ApplyLayoutRequest.LocationEntry entry)
entry
- A location entry with all required datapublic void execute() throws java.lang.Exception
execute
in interface UndoAction
java.lang.Exception
- If something goes wrong.public void removeConnection(LayoutHint layoutHint)
layoutHint
- A connection routing hint contained in a relation