public class UndoLayoutAction extends java.lang.Object implements UndoAction
Red (msp) |
Red (msp) |
Constructor and Description |
---|
UndoLayoutAction(NamedObj source)
Create an undo action for automatic layout.
|
Modifier and Type | Method and Description |
---|---|
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 addLocation(ApplyLayoutRequest.LocationEntry entry)
entry
- A location entry with all required datapublic void addCurve(ApplyLayoutRequest.CurveEntry entry)
entry
- A curve entry with stored exit valuepublic void removeConnection(LayoutHint layoutHint)
layoutHint
- A connection routing hint contained in a relationpublic void execute() throws java.lang.Exception
execute
in interface UndoAction
java.lang.Exception
- If something goes wrong.