public class ApplyLayoutRequest extends ChangeRequest
| 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 |
addConnection(Relation relation,
NamedObj head,
NamedObj tail,
double[] bendPoints,
java.awt.geom.Point2D.Double labelLocation)
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, waitForCompletionpublic 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 addConnection(Relation relation, NamedObj head, NamedObj tail, double[] bendPoints, java.awt.geom.Point2D.Double labelLocation)
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.labelLocation - The location of a label, may be nullpublic 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 ChangeRequestjava.lang.Exception - If the change fails.