public class FXRelocateConnectionPolicy extends FXTransformPolicy
FXRelocateConnectionPolicy is an FXTransformPolicy that
is adjusted for the relocation of an FXConnection. It uses an
FXBendOperation to update the anchors of the FXConnection
according to the applied translation.initialized, TRANSFORMATION_PROVIDER_ROLE| Constructor and Description |
|---|
FXRelocateConnectionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
IUndoableOperation |
commit()
Returns an
IUndoableOperation that performs all manipulations
applied by the policy since the last ITransactional.init() call. |
protected java.util.List<java.lang.Integer> |
getIndicesOfMovableAnchors()
Returns the indices of all movable anchors.
|
void |
init()
Initializes the policy, so that the policy's "work" methods can be used.
|
protected void |
locallyExecuteOperation()
Executes the current operation without pushing it onto the operation
history.
|
void |
setConcatenation(AffineTransform transform)
Concatenates the given
AffineTransform to the initial
transformation. |
void |
setPreConcatenation(AffineTransform transform)
Concatenates the initial transformation to the given
AffineTransform. |
void |
setTransform(AffineTransform newTransform)
Changes the
host's transformation to the given
AffineTransform. |
getNodeTransform, getSnapToGridOffsetcommit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptablepublic IUndoableOperation commit()
ITransactionalIUndoableOperation that performs all manipulations
applied by the policy since the last ITransactional.init() call. When called
multiple times in sequence, only the first call will yield an operation,
the subsequent calls will yield null.commit in interface ITransactionalcommit in class FXTransformPolicyIUndoableOperation that performs all manipulations
applied by the policy since the last ITransactional.init() call.protected java.util.List<java.lang.Integer> getIndicesOfMovableAnchors()
List of Integers specifying the anchors to
relocate.public void init()
ITransactionalIllegalStateException. It is safe to call ITransactional.init()
multiple times in sequence.init in interface ITransactionalinit in class FXTransformPolicyprotected void locallyExecuteOperation()
public void setConcatenation(AffineTransform transform)
FXTransformPolicyAffineTransform to the initial
transformation.setConcatenation in class FXTransformPolicytransform - The AffineTransform that is concatenated to the
initial transformation.public void setPreConcatenation(AffineTransform transform)
FXTransformPolicyAffineTransform.setPreConcatenation in class FXTransformPolicytransform - The AffineTransform to which the initial
transformation is concatenated.public void setTransform(AffineTransform newTransform)
FXTransformPolicyhost's transformation to the given
AffineTransform.setTransform in class FXTransformPolicynewTransform - The new AffineTransform for the host.Copyright (c) 2014 itemis AG and others. All rights reserved.