public class ApplyLayoutRequest extends ChangeRequest
Red (msp) |
Red (msp) |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ApplyLayoutRequest.ConnectionEntry
An entry that contains data for changing a connection using bend points.
|
(package private) static class |
ApplyLayoutRequest.CurveEntry
An entry that contains data for changing a curve using angular values.
|
(package private) static class |
ApplyLayoutRequest.LocationEntry
An entry that contains data for changing a location.
|
Constructor and Description |
---|
ApplyLayoutRequest(java.lang.Object source)
Create a request for applying layout.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_execute()
Execute the request.
|
void |
addConnection(Relation relation,
NamedObj head,
NamedObj tail,
double[] bendPoints)
Add a new connection routing change to the request.
|
void |
addCurve(Transition transition,
double exitAngle)
Add a new transition curve change to the request.
|
void |
addLocation(Locatable locatable,
double x,
double y)
Add a new location change to the request.
|
addChangeListener, execute, getDescription, getLocality, getSource, isErrorReported, isPersistent, isStructuralChange, removeChangeListener, setDescription, setErrorReported, setListeners, setPersistent, waitForCompletion
public ApplyLayoutRequest(java.lang.Object source)
source
- The source object, which is typically the parent composite actor.public void addLocation(Locatable locatable, double x, double y)
locatable
- The locatable that will be changedx
- The new x coordinatey
- The new y coordinatepublic void addConnection(Relation relation, NamedObj head, NamedObj tail, double[] bendPoints)
relation
- The relation that owns the connection.head
- The head object of the connection.tail
- The tail object of the connection.bendPoints
- The new bend points.public void addCurve(Transition transition, double exitAngle)
transition
- The transition that is represented by the curve.exitAngle
- The new value for the exit angle.protected void _execute() throws java.lang.Exception
_execute
in class ChangeRequest
java.lang.Exception
- If the change fails.